number testing
Hi all,
What is the quickest way to test if a number is fractiona, ie, 2.5, 7.99999, 5.5, 8.25...etc regardless whether the number is even or odd or prime. I want to be able to tell, when the code is running that a number is a whole number or not, even the the formatting is for example 25.0, in this case the number is 25, even though the format is s25.0, I want to code to be able to differentiate a real fractional number as oppose to one that is just formatting in nature. Thanks for your suggestions and code samples.
Ben
|