- Code: Select all
Math "trunc(951984987716899/16)" "0" "[Result]"
[Result] is Error instead of 59499061732306.
Moderator: Neosoft Support
Math "trunc(951984987716899/16)" "0" "[Result]"
Math "951984987716899/16" "0" "[Result]"
... which is not the same as trunc ... which just truncates (chops off) everything after the decimal point.decimal places
The number of decimal places to include in the result. Use 0 (zero) to round the result to the nearest whole number
SetVar "[HugeNumber]" "951984987716899"
Math "[HugeNumber]/16" "3" "[HugeAnswer]"
StrParse "[HugeAnswer]" "." "[HugePartA]" "[Junk]"
StrParse "[HugePartA1]" "," "[HugePartB]" "[Junk]"
AlertBox "truncated value is ..." "[HugePartB1]"
Return
hpwNewLispCall "(/ 951984987716899 16)" "[Retvar]"
Return to NeoBook Action Commands
Users browsing this forum: No registered users and 1 guest