PDA

View Full Version : SD: numbers


Robban
08-02-1998, 05:00 AM
is it possible to only get a number without any decimal (eg. to get 11 from 11.123)???

Markus Kuehl
08-02-1998, 06:58 PM
Use the LISP functions 'truncate' or 'round'. For example: (display (truncate 11.123)) => 11 or (display (truncate 11.678)) => 11 or (display (round 11.123)) => 11 or (display (round 11.678)) => 12