Difference between revisions of "StrLC"
Jump to navigation
Jump to search
no edit summary
imported>Low Post (New page: {{Beta}} A command for Pluggy. '''Syntax:''' (Result:long) StrLC Rounded:short (Formula)StringID:long ''$0:long $1:long ... $8:long $9:long'' Used to perform acc...) |
imported>Low Post |
||
Line 7: | Line 7: | ||
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]. | ||
StrLC is for the cases where you can't use LC because the Formula is too long, so using it directly in a set-command causes a crash of the Construction Set. | |||
==Notes== | |||
*If Rounded is different than 0, then result is rounded to the closest integer. | *If Rounded is different than 0, then result is rounded to the closest integer. | ||
*StrLC ignores all characters in Formula but 0 1 2 3 4 5 6 7 8 9 . $ + - * / % ( ) p. | *StrLC ignores all characters in Formula but 0 1 2 3 4 5 6 7 8 9 . $ + - * / % ( ) p. | ||
*StrLC accepts floats as constant in the Formula string. | *StrLC accepts floats as constant in the Formula string. | ||
*StrLC accepts a lowcase p as a Power operator. | *StrLC accepts a lowcase p as a Power operator. | ||
==Example== | ==Example== |