Hi!

According the docs,
http://www.ruby-doc.org/stdlib-2.1.5/libdoc/bigdecimal/rdoc/BigDecimal.html#method-i-fix,
Decimal#fix return the integer part of the number. I wonder why the object
returned by the fix method is an instance of BigDecimal instead of an
instance of Fixnum Similar problem happens with frac method.

a = BigDecimal(7)
=> #<BigDecimal:7fb18015e698,'0.7E1',9(27)>
a.fix
=> #<BigDecimal:7fb180185d38,'0.7E1',9(18)>
a.fix.to_i
=> 7

Thanks,

-- 
Juanjo Conti
Mi primer novela ya se puede conseguir en:
http://www.juanjoconti.com.ar/xolopes