Skip to content
  • Jeronimo Pellegrini's avatar
    Return 0 with appropriate inexactness from log · ba7da88b
    Jeronimo Pellegrini authored
    A previous commit would return Fixnum.ZERO for (log b n)
    if b is zero; this commit makes it return b*n, that will
    automatically return the correct zero (0, 0.0 or 0.0d0),
    according to the inexactness contagion rules.
    ba7da88b