N
nair SL
code to check whether double value is really a floating point
decimal / an integer?
I am checking for valid placeholders for some double variable as
below.
if( (int)dimnValue == dimnValue)
The problem is there is a creepy bug in this LOC as it does not comply
in certain cases.
Can the experts here give there views on why the check is
insufficient.
What is an alternative to check whether the double value is really a
floating point decimal / an integer?
decimal / an integer?
I am checking for valid placeholders for some double variable as
below.
if( (int)dimnValue == dimnValue)
The problem is there is a creepy bug in this LOC as it does not comply
in certain cases.
Can the experts here give there views on why the check is
insufficient.
What is an alternative to check whether the double value is really a
floating point decimal / an integer?