a.to_digits â string
Instance Public methods
Converts a BigDecimal to a String of the form ânnnnnn.mmmâ. This method is deprecated; use #to_s(âFâ) instead.
require 'bigdecimal' require 'bigdecimal/util' d = BigDecimal.new("3.14") d.to_digits # => "3.14"
Please login to continue.