Can anyone give me an easy way to find out the numbers after the decimal point of the double?
All i need to do is to find out if the number ends in 0 like 1.0 or 10.0 or 32
? Note that usually with binary floating point arithmetic, you want to have some sort of tolerance, so that 10.000001 was treated as "pretty close to 10". For example: