Maybe this could be an excuse to invest in one of those new 64 bit Opterons... ;-) Assuming Sun put's out an x86-64 jvm that is.
-- jon mailto:[EMAIL PROTECTED] Tuesday, March 25, 2003, 3:58:52 PM, you wrote: JA> Integers in Java (for CFMX) and C/C++ (in the case of v5 or below) are JA> 32 bit. JA> 32 bit signed integers have a positive limit of about 2^31-1, and JA> negative limit of about 2^31. (My 2's complement may be a little off. JA> :P) JA> Anyway, 2^31 is about 2 billion. 10000000000 is 10 billion. :D JA> ColdFusion stores/converts all overflowed integers to FLOAT in JA> arithmetic expressions, and you lose precision. JA> In short, you have an integer overflow. :P JA> ------------------------------- JA> James Ang JA> Sr. Developer/Product Engineer JA> MedSeek, Inc. JA> [EMAIL PROTECTED] JA> -----Original Message----- JA> From: charlie griefer [mailto:[EMAIL PROTECTED] JA> Sent: Tuesday, March 25, 2003 12:26 PM JA> To: CF-Talk JA> Subject: CF error...Cannot convert 10000000000 to integer JA> Hey folks: JA> working on a function to convert a decimal number to a fraction. JA> everything's working fine, unless the number passed to the function has JA> MORE JA> than 9 decimal places. If 10 decimal places, i get: JA> Error Occurred While Processing Request JA> Cannot convert 10000000000 to integer JA> The function can be seen here: JA> http://charlie.griefer.com/decimal_to_fraction.cfm JA> Is this something wrong in the code? Or a ceiling on CF and integers? JA> Also...just curious...if you were using this function, and passed .33 to JA> it, JA> would you rather get back 33/100 (accurate), or 1/3 (more generally JA> accepted)? JA> tia, JA> charlie JA> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4