On Mon, 7 Feb 2005 10:24:35 -0500, Jon Block <[EMAIL PROTECTED]> wrote: > Someone is giving me an xml feed where I have to use this number: > > 1.79769313486232E+308 > > How do I turn that into a regualr numeric number in coldfusion? >
We used a combination of the isScientific UDF at cflib.org (http://www.cflib.org/udf.cfm?ID=706) to first detect if it's a scientific number. If it was we simply applied the numberFormat() function to it to get it down to a valid-length number to store in our database. Hope that helps? Regards, Dave. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193358 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