Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
3193 Widoki

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?

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor

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

Powiązane posty Odpowiedzi Widoki Czynność
2
lip 20
7669
4
mar 16
5643
0
maj 15
164
1
mar 15
5892
1
mar 15
6712