Hi.
I do some additions in my app, and I ran into this strange problem: when I add 1.3 and 0.1, I get 1.4000000000000001 instead of just 1.4:
All of the above result in a large number just like the example. What is strange is that IT ONLY HAPPENS WHEN "3" IS INVOLVED. All other numbers (1.4, 1.5, etc.) work just fine.
I even defined the numbers separately as doubles and then added them. same result. I even tried them as strings.
Please help... I'm so confused.
I do some additions in my app, and I ran into this strange problem: when I add 1.3 and 0.1, I get 1.4000000000000001 instead of just 1.4:
B4X:
Log(1.3 + 0.1)
Log(1.3 + 0.11)
Log(1.3 + 0.102)
I even defined the numbers separately as doubles and then added them. same result. I even tried them as strings.
Please help... I'm so confused.