need help confirming bug!

hello all!

please run this simple code and see the result on console:

local var1=-18.000000008139871 local var2=18 local var3=var1+var2 print (var3)

mine gives “-8.1398709994573e-009”.

I found this bug when using scaling since it gives numbers with a lot of decimal digits.

I’m running in an Intel processor 3570k, corona build (3585), Windows 7.

I want to know if the bug is from the processor, SO, simulator or corona.

That’s not incorrect. I assume you’re reading the output number as -8.13987… In fact the exponent is marking the number as a floating point decimal: e-009 means the number being printed out is shifted 9 decimal places. (It’s been a while, so my terminology may be wrong here.) So, no, this is not a bug.

That’s not incorrect. I assume you’re reading the output number as -8.13987… In fact the exponent is marking the number as a floating point decimal: e-009 means the number being printed out is shifted 9 decimal places. (It’s been a while, so my terminology may be wrong here.) So, no, this is not a bug.