search for: fixeddbnum

Displaying 1 result from an estimated 1 matches for "fixeddbnum".

2007 Jun 27
0
ActiveRecord Type issue -- What am I missing?
...es RAILS_DEFAULT_LOGGER.info " Result: #{model[attr[0]].inspect} (class=#{model[attr[0]].class}, model=#{model.inspect})" end end I tried that thinking I was all set. I am puzzled by the result. The number I expected to see was 12.34. Instead I saw just 12. The log showed: FixedDbNum: int to float for `price`: 1234 / (10**2) = 12.34 Result: 12 (class=Fixnum, model=#<Service:0xb6931500 @attributes={"reference"=>"7000", "modified_at"=>nil, "billing_frequency"=>"1", "price"=>12.34, "billing_frequenc...