[fpc-pascal] Why this evaluates on "if" wrong ?
post at joaomorais.com.br
Sun Oct 28 19:22:13 CET 2007
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.
More information about the fpc-pascal