Float Output
#1

Ello,

Just a question...




How come?
Reply
#2

Floats are not perfect. You can check if the value is something specific (if you are aware of what values going wrong) and after subtracting with 0.1, add 0.000001 to the result.
Reply
#3

Wierd thing is that if I subtract 0.1 from 15.1 it'll become 15.0.

Is there anyway to do this without floats? Strings maybe?
Reply
#4

That loss of precision is too small to have any major effect rule of thumb when working with floats use >= and <=
Reply
#5

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
That loss of precision is too small to have any major effect rule of thumb when working with floats use >= and <=
I seriously never thought of that... Thank you lol
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)