(fix number)


Convert that real number into an integer.


This function changes the number to an integer. Real numbers are changed to integers by truncating everything after the decimal point; no attempt is made to round off the number.

Examples

Code Returns
(fix 3) 3
(fix pi) 3
(fix 7.999) 7

Tell me about...

(atof string)

(atoi string)

(float number)

(itoa integer)

LISP Compatibility

Programming Overview of LISP (LISt Processing) Language