• Paul Eggert's avatar
    Fix logb on zero, infinite, NaN args · 202bd7bf
    Paul Eggert authored
    Change logb to return -infinity, +infinity, and NaN respectively.
    Formerly logb returned an extreme fixnum to represent
    infinity, but this is no longer the right thing to do now that
    we have bignums and there is no extreme integer.
    * doc/lispref/numbers.texi (Float Basics), etc/NEWS: Document.
    * src/floatfns.c (Flogb): Implement this.
numbers.texi 37.4 KB