<cfset number = 12.34 /> <cfset beforedec = floor(number) /> <cfset after = number - beforedec />
On 11/8/05, Saturday (Stuart Kidd) <[EMAIL PROTECTED]> wrote: > Hi guys, > > I've got a number in one of my fields which has a decimal point. I > want to pull everything from the left of the point so I can use that > value separately for a drop down box for the £ value (pound sterling) > and to the right for the pence select box. I'm just wondering what > the best way of finding the digits before the decimal place and after > it. > > Any help would be great, thanks, > > Saturday > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223610 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

