Excel strange (erroneous?) decimal behaviour
Cell A1 = 4.469 with 3 decimals numeric format
if cell A2 formula is "=A1" == A2 = 4.469
if in VBA: Range("A2").Value=Range("A1").Value == A2 = 4.470
if in VBA: Range("A2").Value=Range("A1").Value * 1000 / 1000 == A2 = 4.469
Can anyone explain this please and how to avoid it?? Could it be that there
is a SET DECIMALS TO 2 VBA environment setting that causes a 2-decimal
rounding??
|