0E-8.00 is a float, not a decimal. Anyway, it is not a valid decimal
either, it is 0.
On Monday, 19 January 2015 23:22:10 UTC-6, Dmitry Ermolaev wrote:
>
> Yes, I use:
> Field('balance', 'decimal(17,8)', readable=False, default =
> Decimal('0.0')),
>
> Try use that field in table then add record in admin panel
> You will see 0E-8.00 in field
> If save the record - error
>
> But if tab to that field - in field appeared 8 - it iis error too
>
>
> четверг, 24 июля 2014 г., 14:36:21 UTC+3 пользователь Massimo Di Pierro
> написал:
>>
>> This 'Decimal(16.8' is not a valid field type. Did you mean
>> 'decimal(16,8)' ?
>>
>> On Thursday, 24 July 2014 06:02:41 UTC-5, Dmitry Ermolaev wrote:
>>>
>>> in db:
>>> ...
>>> Field(ddd, 'Decimal(16.8')),
>>> ...
>>>
>>> than in admin db update
>>> http://127.0.0.1:8000/polza/appadmin/update/db/goods/9
>>>
>>> I see:
>>> ddd: 0E-8.00
>>>
>>> clicl 'Update'
>>> and see error:
>>> Enter a number between -1e+10 and 1e+10
>>>
>>>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.