class BigDecimal
Public Instance Methods
to_deg()
click to toggle source
# File lib/ext/big_decimal.rb, line 3 def to_deg (self * Terraformer::DEGREES_PER_RADIAN).round Terraformer::PRECISION end
to_json(*args)
click to toggle source
# File lib/ext/big_decimal.rb, line 11 def to_json *args finite? ? to_f.to_json : NilClass::AS_JSON end
to_rad()
click to toggle source
# File lib/ext/big_decimal.rb, line 7 def to_rad (self * Terraformer::RADIANS_PER_DEGREE).round Terraformer::PRECISION end