Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

Odoo 9, amounts rounding

By
Artem
on 8/25/16, 3:02 AM 199 views

I imported bank statements by default import from csv file.

In the file the amount is -20.58 but in database I see -20.580000000000002.

What's wrong with numbers in Odoo?

1
Artem
On 9/9/16, 3:37 AM

As I understand this is due to float type used for numbers.

Float type is not precise!!!

Details are here https://docs.python.org/2/tutorial/floatingpoint.html

0
Annadurai
On 9/19/16, 6:08 AM

use widget="integer" ..........

It's like a makeup, numbers are still not precise.

Artem
on 9/19/16, 2:29 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 8/25/16, 3:02 AM
Seen: 199 times
Last updated: 9/19/16, 6:08 AM