fix

Converts a real number to an integer.
**Tip:** If you want to fix() to outcome of a division, simply use the integer division operator (\).

fix(number) → returns numeric

Argument Reference

number numeric
Required

The number to convert

Links more information about fix

Examples
Sample code invoking the fix function

fix(1.8)

Expected Result: 1


Fork me on GitHub