Module: FatCore::BigDecimal

Included in:
BigDecimal
Defined in:
lib/fat_core/bigdecimal.rb

Overview

Extensions to BigDecimal class

Instance Method Summary collapse

Instance Method Details

#inspectString

Provide a human-readable display for BigDecimal. e.g., while debugging. The inspect method in BigDecimal is unreadable, as it exposes the underlying implementation, not the number's value. This corrects that.

Returns:



13
14
15
# File 'lib/fat_core/bigdecimal.rb', line 13

def inspect
  to_f.to_s
end