class Integer

def to_d


See also BigDecimal::new.

42.to_d # => 0.42e2

require 'bigdecimal/util'
require 'bigdecimal'

Returns the value of +int+ as a BigDecimal.

int.to_d -> bigdecimal
call-seq:
def to_d
  BigDecimal(self)
end