smusba
30th January 2011, 10:32
Dear All,
I want to round off the value
max1.qty = max1.qty + ((tdsfl101.qana)-(((tdsfl100.wast*tdsfl101.quan*0.01)*(0.05))-((tdsfl100.wast*tdsfl101.qana*0.01))))
min1.qty = min1.qty + ((tdsfl101.qana)-(((-tdsfl100.wast*tdsfl101.quan*0.01)*(0.05))+((tdsfl100.wast*tdsfl101.qana*0.01))))
For Example,
tdsfl101.qana = 10
tdsfl100.wast = 5
tdsfl101.quan = 10
so it becomes
Max.qty = 10.475 round of value should be 10.5
min.qty = 9.525 round of value should be 9.5
I want to round off the value
max1.qty = max1.qty + ((tdsfl101.qana)-(((tdsfl100.wast*tdsfl101.quan*0.01)*(0.05))-((tdsfl100.wast*tdsfl101.qana*0.01))))
min1.qty = min1.qty + ((tdsfl101.qana)-(((-tdsfl100.wast*tdsfl101.quan*0.01)*(0.05))+((tdsfl100.wast*tdsfl101.qana*0.01))))
For Example,
tdsfl101.qana = 10
tdsfl100.wast = 5
tdsfl101.quan = 10
so it becomes
Max.qty = 10.475 round of value should be 10.5
min.qty = 9.525 round of value should be 9.5