Sha256: 92c99abd6afafec473d2dcd7bf4a08c3024a87082873aedf71cd20d721159d0e
Contents?: true
Size: 432 Bytes
Versions: 8
Compression:
Stored size: 432 Bytes
Contents
module Polyfill module V2_2 module Math module ClassMethods def log(*args) if (base = args[1]) base = InternalUtils.to_f(base) raise ::Math::DomainError, 'Numerical argument is out of domain - "log"' if base < 0 x = args[0] return 0 / 0.0 if base == 0 && InternalUtils.to_f(x) == 0 end super end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems