Can anybody explain the following for me:
I find this totally bizarre, and it's giving me a headache... %-(
(Oh, and it seems to be crippling my application, as the numbers are taxonomic codes for insect species, and so fixed. The above comparison is used in part of a routine to verify new taxonomic codes when users add species)
Phil
---------------
Pass me the ether.
Code:
CDbl(Int(CDec(87.0290060) * 10000000) / 10000000)<87.0290060 = false
BUT
CDbl(Int(CDec(87.0290070) * 10000000) / 10000000)<87.0290070 = true
I find this totally bizarre, and it's giving me a headache... %-(
(Oh, and it seems to be crippling my application, as the numbers are taxonomic codes for insect species, and so fixed. The above comparison is used in part of a routine to verify new taxonomic codes when users add species)
Phil
---------------
Pass me the ether.