Re: Parsing binary Java doubles



On 2007-08-31, Stefan Arentz <stefan.arentz@xxxxxxxxx> wrote:
sb-kernel:make-double-float.
Ah I think that was the final piece of the puzzle :-) Thanks!

You could also implement it portably and use SCALE-FLOAT like
ieee-floats does it (see http://www.cliki.net/ieee-floats).

However, for full compatibility with Java you have to handle NaN and
infinity, which Common Lisp does not support portably. Hence
sb-kernel:make-double-float for a full solution.
.



Relevant Pages

  • Re: How to handle floats and avoid NaN
    ... I start getting NaN for a lot of my calculations. ... >>>is due to the way in which Java handles floats. ... > negative infinity which are distinct from NaN. ...
    (comp.lang.java.programmer)
  • Re: Calculus XOR Probability
    ... have a number, so it's NaN. ... What kind of math can you do on a Java ... similarly any operation involving an infinity operand results in either ... You described counting the size of a finite set. ...
    (sci.math)
  • Re: Calculus XOR Probability
    ... have a number, so it's NaN. ... What kind of math can you do on a Java ... similarly any operation involving an infinity operand results in either ... You described counting the size of a finite set. ...
    (sci.math)
  • Re: Calculus XOR Probability
    ... have a number, so it's NaN. ... What kind of math can you do on a Java ... similarly any operation involving an infinity operand results in either ... You described counting the size of a finite set. ...
    (sci.math)
  • Re: Common Lisp implementations are still multiple times slower than C
    ... In another thread in this newsgroup some people wrote that Common Lisp can ... Java compiler to create an efficient version. ... (loop for y from 0 below height ... (if (zerop cell) ...
    (comp.lang.lisp)