I would expect the expressions initially stored in gsNum1 and gsNum2 to be equal, but somehow they are not. When this code is run, as you can see in the first line of the first MsgBox, they're testing out as not equal, but their display looks identical. However, once I've done some math on gsNum2, everything works OK in the second MsgBox. Is there a reason for this? Is this behavior that can be modified, because even if not a bug, maybe seems unexpected?
Code: Select all
SetFormat, FloatFast, 0.10
MsgBox % (((gsNum1 := (-1 + Round(((13/24) + (59/1440)), 10))) == (gsNum2 := -0.4173611111)) "`n" gsNum1 "`n" gsNum2)
gsNum2 := gsNum2 + 1 - 1
MsgBox % (gsNum1 == gsNum2) "`n" gsNum1 "`n" gsNum2