On Tue, 24 Dec 2013 18:18:03 +0100 Mikael <mikael.rcv@gmail.com> wrote:This may give you a hint:
>
> Wait, just curious, what is the actual FP 64bit representation of 0.3 and
> why does it turn out differently like this?
>
> (and (exact->inexact 5404319552844595/18014398509481984) become .3 rather
> than 0.299[something] or 0.3000[something])
$ bc
obase=2
5404319552844595
10011001100110011001100110011001100110011001100110011
18014398509481984
1000000000000000000000000000000000000000000000000000000
^D
Or see
http://en.wikipedia.org/wiki/Double-precision_floating-point_format