• Paul Eggert's avatar
    Handle weird cases like (ceil 0 0.0) · 8b848def
    Paul Eggert authored
    * src/floatfns.c (double_integer_scale): Distinguish Inf from NaN.
    (rounding_driver): Handle (ceil 0 0.0) and (ceil 0 1.0e+INF).
    * test/src/floatfns-tests.el (special-round): Add tests for
    weird cases like this.
    
    Avoid crash with (floor 0 0.0)
    * src/floatfns.c (rounding_driver): Signal an arithmetic
    error if divisor is 0.0 or -0.0, instead of crashing.
    8b848def
floatfns-tests.el 5 KB