fix

Converts a real number to an integer.

fix(number) → returns Numeric

Argument Reference for the fix function

number

Required: Yes

Examples sample code invoking the fix function


Fix 1.8 to an integer

fix(1.8)

Expected Result: 1


Fork me on GitHub