17.09.2012, 07:00
So I changed a calculator command I had, which only worked with integers, to work with float numbers.
It all "worked" fine except, for example, I type:
/calculate 1.4 1.4 add
it sends the messages:
1.39999 + 1.39999 = 2.79999
Why does it change the 1.4 to 1.3999?
Cheers,
haven't worked with floats too much.
It all "worked" fine except, for example, I type:
/calculate 1.4 1.4 add
it sends the messages:
1.39999 + 1.39999 = 2.79999
Why does it change the 1.4 to 1.3999?
Cheers,
haven't worked with floats too much.