Field('totalsale', 'decimal(10,8)'))
# this is not required, it is automatic
db.document.totalsale.requires=IS_DECIMAL()
sqlite does not support decimal so this behaves as a double with
sqlitle.
I am using sqlite.
On Apr 27, 9:42 am, greenpoise <[email protected]> wrote:
> I see a few threads on decimal values. What is the final status of
> this? Is the field name type Numeric or Integer decimal? such as :
>
> Field('totalsale', 'integer'))
> db.document.totalsale.requires=IS_DECIMAL()
>
> I am using sqlite.
>
> --
> Subscription settings:http://groups.google.com/group/web2py/subscribe?hl=en