Tryton - Issues



Title Round error on numeric field
Priority bug Status resolved
Superseder Nosy List caf, ced, reviewbot, roundup-bot
Type crash Components sao
Assigned To ced Keywords review
Reviews 41911002
View: 41911002

Created on 2018-03-08.17:58:04 by caf, last changed by roundup-bot.

New changeset 26cad793393d by Cédric Krier in branch 'default':
Avoid float precision error after the division by factor
review41911002 updated at
review41911002 updated at
msg38875 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2018-03-08.19:48:14
Here is review41911002 which should fix the problem.
msg38872 (view) Author: [hidden] (caf) Date: 2018-03-08.17:58:03
When I tried to create or modify a tax with rate 3.6% the below message appear:

The number of digits "10" of field "Rate" on "Decimal('0.036000000000000004')" exceeds its limit.
Date User Action Args
2018-03-19 11:40:15roundup-botsetstatus: testing -> resolved
nosy: + roundup-bot
messages: + msg39073
2018-03-09 01:22:50reviewbotsetmessages: + msg38880
2018-03-08 20:19:50reviewbotsetnosy: + reviewbot
messages: + msg38876
2018-03-08 19:48:14cedsetstatus: in-progress -> testing
reviews: 41911002
messages: + msg38875
keyword: + review
2018-03-08 19:46:40cedsetstatus: unread -> in-progress
assignedto: ced
type: crash
nosy: + ced
2018-03-08 17:58:04cafcreate

Showing 10 items. Show all history (warning: this could be VERY long)