myInvtable got a field named "invamt" which is decimail (9,2) ,
user will input the unitprice, noof unit in the table, and I will calculate
the amount.
in myInvDeatil_cha nged.
.....
e.row("invamt") = e.row("unitpric e") * e.row("noofunit ")
*E.row("exchang erate")
When I use debugger to check, I found that e.row("invamt") = 4.875D <---
Why not 4.86 ????
Then,
I try .. e.row("invamt") = Math.round(e.ro w("unitprice" ) *
e.row("noofunit ") *E.row("exchang erate") ,2)
Me.InvAmt.text = Math.round(e.ro w("unitprice" ) *
e.row("noofunit ") *E.row("exchang erate") ,2)
Debugger again, it sometimes return 4.87 , but sometimes return 4.86.
I don't know what's wrong, please help.
user will input the unitprice, noof unit in the table, and I will calculate
the amount.
in myInvDeatil_cha nged.
.....
e.row("invamt") = e.row("unitpric e") * e.row("noofunit ")
*E.row("exchang erate")
When I use debugger to check, I found that e.row("invamt") = 4.875D <---
Why not 4.86 ????
Then,
I try .. e.row("invamt") = Math.round(e.ro w("unitprice" ) *
e.row("noofunit ") *E.row("exchang erate") ,2)
Me.InvAmt.text = Math.round(e.ro w("unitprice" ) *
e.row("noofunit ") *E.row("exchang erate") ,2)
Debugger again, it sometimes return 4.87 , but sometimes return 4.86.
I don't know what's wrong, please help.
Comment