Excel strange (erroneous?) decimal behaviour
? Range("A1").Value
4.469
? Range("A2").Value
4.469
? range("A1").Value*1000/1000
4.469
? range("A2").Value*1000/1000
4.469
I couldn't reproduce it.
--
Regards,
Tom Ogilvy
"DoctorG" wrote in message
...
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??
|