This may not belong in Hobo_users... but I have a model where one of
the fields maps to an oracle db row that is defined as NUMBER(10,5)
but really I want stricter control over the precision...

In fields do ... I have the_value :decimal, :precision => 4, :scale =>
3 and I have format validators insuring that the user never enters
anything beyond x.xxx...

But when the user edits a value, (say from 1.0 to .345) the resulting
value ends up displaying as 0.34500000000000003.

Is this just some sort of float/decimal precision issue?  Does the
precision attribute not really work in the field definition, or is it
caused by the mismatch between the DB and the Model?

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to