Problem of adding 2 numbers

I got in trouble in my project about adding two numbers.
I found this: 0.1 + 0.2 = 0.300000000…0004 and 0.1 + 0.7 = 0.79999999999999
My project: Thunkable

1 Like

you are trying to add two text values. try converting them to numbers (for example, add zero), and then work with numbers …

1 Like

can you say more details please, i am a newbie :frowning:

@sewar meant that you can convert the text input to numeric values by adding zero (or multiplying by one). This is sometimes necessary when text is used in calculations. It looks like this:

image

However, I tried this with your setup and it still produced the long digit values.

1 Like

yes, unfortunately it didn’t help …
we will wait for the answer of the professionals!

as an option - you can show the result of 6 characters and then there will be no error