G
Guest
Why do the following results occur?
Immediate window:
?7.2 <= 6*1.2
False
?7.2 <= convert.ToSingle(6*1.2)
False
?7.2 <= convert.ToDouble(6*1.2)
False
?7.2 <= 7.2
True
What coding practise should be used to handle this situation correctly?
Immediate window:
?7.2 <= 6*1.2
False
?7.2 <= convert.ToSingle(6*1.2)
False
?7.2 <= convert.ToDouble(6*1.2)
False
?7.2 <= 7.2
True
What coding practise should be used to handle this situation correctly?
)