Looks like a limitation in decimal format.  You probably noticed this
too, but if you change
123456789123456789.12
to
1234567891234567.12
it works.

By the way, I've found you don't need to manually specify your
numberformat out to that many levels.  This always works for me:
#numberformat(num,',.99')

> -----Original Message-----
> From: Snake [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, February 16, 2006 7:05 AM
> To: CF-Talk
> Subject: Number formatting bugs
> 
> Erm can anyone tell me why this code
> 
> <cfset num = 123456789123456789.12>
> 
> <cfoutput>numberformat:#numberformat(num,'999,999,999,999,999,
> 999,999.99')#<
> br>
> decimal format: #decimalformat(num)#
> </cfoutput>
> 
> Produces this result, which is obviously wrong ?
> 
> numberformat: 123,456,789,123,456,784.00
> decimal format: 92,233,720,368,547,760.00 
> 
> --
> Russ
> 
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232449
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

Reply via email to