Simple double math issue

variable

#1

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


#2

Try converting it to type “decimal”
CDec((1015352 - 1015354)/1015354).tostring worked for me


#3

Sweet that worked. Thanks Clayton