Truncates a number to a specified number of decimal places.
(dos_trunc number [precision])
number
The number.
precision
The precision of the truncation. The default value precision is 0 (zero).
The truncated number, if successful.
nil on error.
Command: (dos_trunc (dos_pi)) 3 Command: (dos_trunc (dos_pi) 1) 3.1 Command: (dos_trunc (dos_pi) 2) 3.14 Command: (dos_trunc (dos_pi) 3) 3.141
There was an error while loading. Please reload this page.
Home Introduction CAD Function Configuration Functions Directory Functions Drive functions File Functions Math Functions Path Functions Printer Functions Process Functions String Functions System Functions User Interface Functions DOSLib Functions History