previous next top contents index framed top this page unframed
Figure 48–16. truncate (GENERIC)
| $BUILTIN INTEGER PROCEDURE truncate (REAL v); $BUILTIN LONG INTEGER PROCEDURE truncate (LONG REAL v); |
truncate returns the (LONG) INTEGER obtained by discarding v's fraction; i.e., it rounds towards zero.
See Figure 35–16 for a table contrasting ceiling, cvi, floor, and truncate.
MAINSAIL Language Manual, Section 48.16