Floats confusion
#1

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.
Reply


Messages In This Thread
Floats confusion - by cosbraa - 17.09.2012, 07:00
Re: Floats confusion - by clarencecuzz - 17.09.2012, 07:55
Re: Floats confusion - by cosbraa - 17.09.2012, 08:20
Re: Floats confusion - by clarencecuzz - 17.09.2012, 08:26
Re: Floats confusion - by cosbraa - 17.09.2012, 09:11
Re: Floats confusion - by Roko_foko - 17.09.2012, 09:19
Re: Floats confusion - by [ABK]Antonio - 17.09.2012, 09:20

Forum Jump:


Users browsing this thread: 4 Guest(s)