Daniël Mantione wrote:
There is a similar issue here. The value "0.4" cannot be stored exactly in a computer, therefore it is rounded.

This behaviour normal and while annoying, it is simply how things work in the digital world, you will have to work around it.

Or, of course, use a scaled integer type like Currency.

--
Joao Morais

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to