In my script, when I do math with division, I get numbers in scientific format - with e's in them (I'm writing a calculator app)
610*2.17 = 1.3237000000000000e+003
My code is long and complicated and I'm not sure what I did to get this to happen.
What do I look for, and how do I get it to just give me 2 decimal points?
Now, I have this which I am using to switch back to regular numbers (because I switch to hex in another place)
normalfloatformat := "0." . decimalplaces+1 . "g" ;you have to add 1 to the number to display the correct amount of digits
normalfloatformat := "0." . maxdecimalplaces+1 . "g"
;W := W="" ? "0.6g" : "0." . W
;SetFormat Integer, %FormI%
SetFormat Integer, D ;decimal format
SetFormat FLOAT, %normalfloatformat%