<cfset myNumber = 3.4> <cfif mynumber eq int(myNumber)> It is a whole number! <cfelse> Those sneaky fractions! </cfif>
Matthew P. Smith Web Developer, Object Oriented -----Original Message----- From: Tristram Charnley [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 11:02 AM To: CF-Talk Subject: Finding a whole number Does anyone know of a CF function to detect whether a number is a whole number or a fraction? Tris ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists