We're missing the DECIMAL data type (for those DBs that support it).
I believe it may still be under consideration.
However, without this,  it will be difficult to make accounting-type
apps.

Regards, David

On Nov 11, 7:49 am, Richard <richar...@gmail.com> wrote:
> Hello,
>
> I have some floating point numbers in my database which I need to test
> for equality. Numbers like "0.3" are failing an equality test.
> So, is there a way to store floating point numbers precisely? Or
> should I be using something like:
> offset = 0.000001
> (db.table.fp > v - offset)(db.table.fp < v + offset)
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to