fix

(fix number)

The fix function converts a real number to an integer. The fractional portion of the floating-point value is truncated.

Examples

: (fix 2)

2

: (fix 2.22)

2

: (fix 3000000000)

2147483647

: (fix 2.77)

2