method

to_f

v2_1_10 - Show latest stable - Class: BigDecimal
to_f()
public

Returns a new Float object having approximately the same value as the BigDecimal number. Normal accuracy limits and built-in errors of binary Float arithmetic apply.