[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
doubling your bits
Having just noticed that:
(coerce .1 'double-float) = 0.10000000149011612d0
I was wondering...
1) How much slower would coerce be if it added decimal zeros?
eg., (coerce .1 'double-float) -> 0.1d0
2) How do other Commonlisp implementations handle this?
3) If I really want the additional digits to be zeros, is there any
faster way than something like:
(coerce (/ (round .1 .00000001) 100000000) 'double-float)