Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
10793 Представления

Hello guys i'm using odoo 10..

i have condition 5 field type float  8 digit A,B,C,D,E

A = 1000

B = 130

C = A / B

D = 8

E = C * D

i want multiply my field like this in 8 digits 

1000 / 130 = 7.69230769

7.69230769 * 8 = 61.53846152‬

I want my field C =  7.69230769 and E = 61.53846152 show only 2 digits in view but still 8 digit in multiply..

because if i cut my field C in 2 digits only, my E will be different 0.01 from 61.53 become 61.52

7.69 * 8 = 61.52


can anyone know how to solved this?




Аватар
Отменить
Лучший ответ

Hello, 

Please check my answers here.

Maybe you get any help from this. 

Thanks.

Аватар
Отменить
Лучший ответ

please check this answer 

decimal precision

Аватар
Отменить
Related Posts Ответы Просмотры Активность
0
янв. 22
3071
2
окт. 24
1137
1
дек. 20
4355
1
июл. 20
3923
3
июн. 16
11567