跳至內容
選單
此問題已被標幟
2 回覆
10769 瀏覽次數

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
1月 22
3049
2
10月 24
1134
1
12月 20
4352
1
7月 20
3903
3
6月 16
11560