F
Fei
Hi,
I got a problem. I don't know how to solve it. I have two columns, NetEach
and Rate. Then I create an expression Column, Total, like this
Table1.Columns.Add("Total", GetType(Decimal), "NetEach * Rate")
i.e. Total = NetEach * Rate
So if NetEach = 10, and Rate = 0.1299, then Total = 1.299. But I need 1.29,
not 1.299,not 1.300. That means I don't want Rounding. I just want two
digits after the decimal point. Is this possible?
I try below, but it gives me Rounding which I don't want.
Table1.Columns.Add("Total", GetType(Integer), "Convert(Rate * NetEach *
100,System.Int32)")
Simply saying, If I need two digits after decimal point, how can I do it in
an expression column ?
Thanks in advance
Fei
I got a problem. I don't know how to solve it. I have two columns, NetEach
and Rate. Then I create an expression Column, Total, like this
Table1.Columns.Add("Total", GetType(Decimal), "NetEach * Rate")
i.e. Total = NetEach * Rate
So if NetEach = 10, and Rate = 0.1299, then Total = 1.299. But I need 1.29,
not 1.299,not 1.300. That means I don't want Rounding. I just want two
digits after the decimal point. Is this possible?
I try below, but it gives me Rounding which I don't want.
Table1.Columns.Add("Total", GetType(Integer), "Convert(Rate * NetEach *
100,System.Int32)")
Simply saying, If I need two digits after decimal point, how can I do it in
an expression column ?
Thanks in advance
Fei