Changes between Initial Version and Version 9 of Ticket #17854
- Timestamp:
- Mar 13, 2012, 6:37:34 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #17854
- Property Component Uncategorized → Database layer (models, ORM)
- Property Summary DecimalField problem → Problem with DecimalField and big vlues of max_digits, decimal_places, sqlite3 backend
- Property Severity Release blocker → Normal
- Property Triage Stage Unreviewed → Accepted
-
Ticket #17854 – Description
initial v9 1 For a model field created as :: models.DecimalField(max_digits = 200, decimal_places = 100, blank = False, null = False) 2 While using admin interface to insert a record involving such a DecimalField, the format changes (loss of precision and it uses scientific notation (even in the database)) (Please note - it works properly for low precision values (example - .987654321001234) - but for larger precision values (probably 15 decimal_places or more) it results in loss of precision) 1 For a model field created as 2 {{{ 3 models.DecimalField(max_digits = 200, decimal_places = 100, blank = False, null = False) 4 }}} 3 5 4 django version 1.3.1 and 1.4c1 (don't know about older versions); 5 python 2.6.6; 6 linux; 6 While using admin interface to insert a record involving such a !DecimalField, the format changes (loss of precision and it uses scientific notation (even in the database)) (Please note - it works properly for low precision values (example - .987654321001234) - but for larger precision values (probably 15 decimal_places or more) it results in loss of precision) 7 8 * django version 1.3.1 and 1.4c1 (don't know about older versions); 9 * python 2.6.6; 10 * linux;