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

fix Argument Reference

number numeric
Required

Links more information about fix

Examples sample code invoking the fix function

fix(1.8)

Expected Result: 1


Fork me on GitHub