Thread: number testing
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ben[_5_] Ben[_5_] is offline
external usenet poster
 
Posts: 5
Default 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