lucky_star
8 years agoOccasional Contributor
subtraction of two variable
Hi guys,
I have an issue of subtraction of two variable with large numbers. Here is my script:
function test()
{
var str1 = "1,000,659,875,073,160";
var str2 = "1";
str1 = Utilities.FormatFloat(0, str1);
str2 = Utilities.FormatFloat(0, str2);
Log["Message"](str1);
Log["Message"](str2);
var res = aqConvert["VarToFloat"](str1) - aqConvert["VarToFloat"](str2);
Log["Message"](res);
}
And attached screenshots of the result.
Can you please help me?