Hi,
that seems strange but is 'normal' for computer math

.
The links above are explaining that already very well and also another one:
http://blog.reverberate.org/2016/02/06/f…fied-part2.html
Or just google for '0.1 + 0.2' - that's a very common topic.
When you expect an exact number of decimal points always round to them.
E.g. instead of:
|
Quellcode
|
1
|
add(myvar,0.1);
|
try this:
|
Quellcode
|
1
|
calc(myvar, roundval(myvar + 0.1, 1) );
|
Best regards,
Klaus