Class: BigDecimal

Inherits:
Object show all
Defined in:
lib/sxp/extensions.rb

Overview

Extensions for Ruby’s ‘BigDecimal` class.

Instance Method Summary collapse

Instance Method Details

#to_sxp(**options) ⇒ String

Returns the SXP representation of this object.

Returns:



137
138
139
# File 'lib/sxp/extensions.rb', line 137

def to_sxp(**options)
  to_f.to_s
end