Module: FatCore::BigDecimal

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

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:


10
11
12
# File 'lib/fat_core/bigdecimal.rb', line 10

def inspect
  to_f.to_s
end