Difference between revisions of "LC"

85 bytes added ,  08:51, 26 April 2009
no edit summary
imported>Low Post
(Added Rounded-Parameter.)
imported>Low Post
Line 4: Line 4:


'''Syntax:'''
'''Syntax:'''
  (Result:long) LC Rounded:short Formula:string ''$0:long $1:long ... $8:long $9:long''
  (Result:long) LC Rounded:bool Formula:string ''$0:long $1:long ... $8:long $9:long''


Used to perform accurate calculations on very large or very small integer variables, as the Oblivion [[Set]] command is only accurate for variables within the range [-8,388,608, 8,388,607].
Used to perform accurate calculations on very large or very small integer variables, as the Oblivion [[Set]] command is only accurate for variables within the range [-8,388,608, 8,388,607].
If Rounded == 0 the result is truncated, otherwise everything above .5 is rounded up.


==Example==
==Example==
Anonymous user