[fpc-pascal] Why this evaluates on "if" wrong ?
Adriaan van Os
fpc at microbizz.nl
Sun Oct 28 21:45:19 CET 2007
Daniƫl Mantione wrote:
> N - Natural numbers
> Z - Integer numbers
> Q - Rational numbers
> R - Real numbers
> C - Complex numbers
>
> Subranges of N, Z and Q can be represented exactly in a computer.
> R and C
> can not, we use the floating point system as approximation.
This is big nonsense. The issue is not if they can be "represented in a computer" but that a
10-base decimal fraction can not be represented exactly in a 2-base floating point format.
Regards,
Adriaan
More information about the fpc-pascal
mailing list