vboddu
(vboddu)
July 22, 2020, 6:56am
1
Hi All,
i have two strings one is Amount=317.01 and other is TaxAmount=36.47.
i need to subtract 36.47 from 317.01 which the result should be 280.54.
but it is giving 281
this is my expression
pretax=CInt(Amount)-CInt(TaxAmount)
i tried pretax as both int32 and double. Am i missing anything basic?
vboddu
(vboddu)
July 22, 2020, 7:11am
3
the values are coming from ocr and it is string though.i have changed to the below expression and it is working.
pretax=(Double.Parse(string1)-Double.Parse(string2)).ToString
1 Like
system
(system)
Closed
July 25, 2020, 7:16am
4
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.