Ceil

From WikiManual
Revision as of 10:42, 29 November 2005 by 212.45.32.215 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Will 'cut off' any value the stack's holding to the ceil's number.

in this syntax: A B CEIL

A will be cut off to B, providing that A>B

For example:

200 400 add 500 ceil .shoot store will store 500 in .shoot

100 100 add 500 ceil .shoot store will store 200 in .shoot. Because the ceil isn't reached, no values are 'cut off'