fix

Converts a real number to an integer.

fix(number) → returns Numeric

fix Argument Reference

number
Required

Examples sample code invoking the fix function


Fix 1.8 to an integer

fix(1.8)

Expected Result: 1


Fork me on GitHub