fix

AutoCad AutoLISP Functions

 
fix
 
 
 

Returns the conversion of a real number into the nearest smaller integer

(fix number) 

The fix function truncates number to the nearest integer by discarding the fractional portion.

Arguments

number

A real number.

Return Values

The integer derived from number.

If number is larger than the largest possible integer (+2,147,483,647 or -2,147,483,648 on a 32-bit platform), fix returns a truncated real (although integers transferred between AutoLISP and AutoCAD are restricted to 16-bit values).

Examples

Command: (fix 3)

3

Command: (fix 3.7)

3