why 1234567891.00000001 == (long)1234567891.00000001 returns true even though they are fals
but 123456789.00000001 == (long)123456789.00000001 returns true..
It's an issue with precision. Floating point values are not that accurate in terms of precision.
Actually, you didn't even need to cast it to a long value...
"123456789.00000001 == 123456789.0" should return true.
Henry
[ July 21, 2006: Message edited by: Henry Wong ]