Add type-specific iround conversions
Add factorial function