Difference between revisions of "Talk:Ceil"

259 bytes added ,  13:30, 21 August 2006
no edit summary
imported>JOG
(still problems...)
imported>JOG
Line 36: Line 36:
  set floatvar to 0.55
  set floatvar to 0.55
  set shortvar to 11 * floatvar - 4.01
  set shortvar to 11 * floatvar - 4.01
Another example:
short x ; = 3
short y ; = 2
set x to y * x / 1.9         
Will set x to 3:
:2 * 3 / 1.9 = 3.16 => truncated to '''3'''
set x to y * ceil ( x / 1.9 )
Would set x to 4:
:''3 / 1.9'' = 1.58 => ceiled to ''2''
:2 * ''2'' = '''4'''
Anonymous user