odd variable behavior (numbers not adding correctly)

noquarter

Active Member
I'm having a strange error where two numbers being added together are not equal to the actual sum of the two numbers. For example, adding together 4.44 + 0.1 equals 4.5400010

All of the variables involved are all float64

Why does it not just give me what those two numbers added together ACTUALLY equal?
For example, using the following code:

Var1:Set[${Math.Calc[(${Var2}+${Var3})]}]
echo sum of ${Var2} + ${Var3} = ${Var1}

Results in a display of:
sum of 389.250000 + 0.010000 = 389.260010
 
Top Bottom