Wrong behaviour of non-integer numbers in lists?

I am pretty new, so what I found might not be a bug, but instead an intended behaviour. I use a list to store numbers for later processing. It seems that my list treats non-integer number wrong. Here the code:

‘’’
myList =
s = {minval: 1.1e-3, maxval: 8.4e-3}
myList << s
s = myList(0)
diff = s.maxval - s.minval
print "via list: " + s.maxval + " - " + s.minval + " = " + diff
print "directly: 8.4e-3 - 1.1e-3 = " + str(8.4e-3 - 1.1e-3)
pause
‘’’

when using list elements for calculation (here a diffenrence) the result is wrong. The result is correct, when only integer values are used. My version is 12.33

Hi reibl, thanks for reporting. It is a bug. When running the following program:

s = {a: 1.1e-3, b: 0.0011}
print s

You can see that a is a string and b a number. as a workaround until it is fixed please don’t use the exponential notation when initializing a map variable.