Trying to do some simple Math. I have 2 variables as Double. And the the logic is this:

(1015352 - 1015354)/1015354 = -9.48878180417864E-07

Any thoughts on correctly getting the precision correctly

Thanks

Trying to do some simple Math. I have 2 variables as Double. And the the logic is this:

(1015352 - 1015354)/1015354 = -9.48878180417864E-07

Any thoughts on correctly getting the precision correctly

Thanks

Try converting it to type â€śdecimalâ€ť

`CDec((1015352 - 1015354)/1015354).tostring`

worked for me

1 Like

Sweet that worked. Thanks Clayton