Difference between revisions of "Ceil"

From WikiManual
Jump to: navigation, search
m
Line 5: Line 5:
 
A will be cut off to B, providing that A>B
 
A will be cut off to B, providing that A>B
  
 +
==[[Operator]]s:==
 +
{{Advanced Commands}}
  
−
----
+
==Eamples:==
  
 +
200 400 add 500 ceil .shoot store
 +
stores 500 in .shoot .
  
−
For example:
+
100 100 add 500 ceil .shoot store
−
 
+
stores 200 in .shoot . Because the ceil isn't reached, no values are 'cut off.
−
''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'
 

Revision as of 17:10, 31 January 2006

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

Operators:

Advanced Commands:

angle
dist
ceil
floor
sqr pow
pyth

The following commands are not supported in versions earlier 2.46:

anglecmp
root
logx
sin
cos

Eamples:

200 400 add 500 ceil .shoot store

stores 500 in .shoot .

100 100 add 500 ceil .shoot store

stores 200 in .shoot . Because the ceil isn't reached, no values are 'cut off.