# Wrong behaviour of non-integer numbers in lists?

**URL:** <https://smallbasic.discourse.group/t/wrong-behaviour-of-non-integer-numbers-in-lists/75>\
**Category:** Bugs\
**Created:** [November 6, 2026, 10:44pm UTC](https://smallbasic.discourse.group/t/wrong-behaviour-of-non-integer-numbers-in-lists/75 "2026-11-06T22:44:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![reibl](https://avatars.discourse-cdn.com/v4/letter/r/3bc359/32.png) [@reibl](https://smallbasic.discourse.group/u/reibl)\
**Post date:** [November 6, 2026, 10:44pm UTC](https://smallbasic.discourse.group/t/wrong-behaviour-of-non-integer-numbers-in-lists/75/1 "2026-11-06T22:44:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![J7M](https://yyz2.discourse-cdn.com/free1/user_avatar/smallbasic.discourse.group/j7m/32/7_2.png) [@J7M](https://smallbasic.discourse.group/u/J7M)\
**Post date:** [November 7, 2026, 8:33am UTC](https://smallbasic.discourse.group/t/wrong-behaviour-of-non-integer-numbers-in-lists/75/2 "2026-11-07T08:33:19Z")

</div>

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

```auto
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.
