Difference between revisions of "LC"
Jump to navigation
Jump to search
imported>Speedo (Rewording) |
imported>Low Post (Added Rounded-Parameter.) |
||
Line 4: | Line 4: | ||
'''Syntax:''' | '''Syntax:''' | ||
(Result:long) LC Formula:string ''$0:long $1:long ... $8:long $9:long'' | (Result:long) LC Rounded:short 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]. | ||
==Example== | ==Example== | ||
set Result to LC "$0 – ( $1 + $2 / $4 ) % $0 * $3" Long0 Long1 Long2 1478 Long4 | set Result to LC 0 "$0 – ( $1 + $2 / $4 ) % $0 * $3" Long0 Long1 Long2 1478 Long4 | ||
[[Category: Functions (Pluggy)]] | [[Category: Functions (Pluggy)]] |
Revision as of 08:49, 26 April 2009
Beta Function
This function has not been fully tested yet, and is not ready to be used in a released mod. It may not have the same function in later versions, may require the script to be recompiled, or simply may be removed. Use for testing purposes only until the author of the function says otherwise.
A command for Pluggy.
Syntax:
(Result:long) LC Rounded:short 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].
Example
set Result to LC 0 "$0 – ( $1 + $2 / $4 ) % $0 * $3" Long0 Long1 Long2 1478 Long4