Tryton - Issues

 

Issue7201

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.

Messages
New changeset 0ad6b4b323c4 by Cédric Krier in branch '4.6':
Avoid float precision error after the division by factor
http://hg.tryton.org/sao/rev/0ad6b4b323c4

New changeset 439b8614372a by Cédric Krier in branch '4.4':
Avoid float precision error after the division by factor
http://hg.tryton.org/sao/rev/439b8614372a

New changeset 4b12e5adbc1f by Cédric Krier in branch '4.2':
Avoid float precision error after the division by factor
http://hg.tryton.org/sao/rev/4b12e5adbc1f

New changeset 50c3e7d0fdea by Cédric Krier in branch '4.0':
Avoid float precision error after the division by factor
http://hg.tryton.org/sao/rev/50c3e7d0fdea

New changeset d63c06b6a3b8 by Cédric Krier in branch '3.8':
Avoid float precision error after the division by factor
http://hg.tryton.org/sao/rev/d63c06b6a3b8
New changeset 26cad793393d by Cédric Krier in branch 'default':
Avoid float precision error after the division by factor
http://hg.tryton.org/sao/rev/26cad793393d
review41911002 updated at https://codereview.tryton.org/41911002/#ps20001
review41911002 updated at https://codereview.tryton.org/41911002/#ps1
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.
History
Date User Action Args
2018-03-25 01:55:06roundup-botsetmessages: + msg39356
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)