This seems to work, albeit a little cumbersome.
<Cfset number = 123456789123456.78912>
<CFSET newnum = #ListFirst(number, ".")#&"."&#Left(ListLast(number,
"."),2)#>
Larry Juncker
Senior Cold Fusion Programmer
Heartland Internet
-----Original Message-----
From: Colin Robinson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 12, 2000 5:01 PM
To: [EMAIL PROTECTED]
Subject: Decimal places ??
Could someone please tell me how in cf you can format a number so that it
has only two decimal places but the integer part of the number can be of
infinite length.
Colin Robinson
In-tuition.co.uk
Tel: +44 (0) 1825 746400
ICQ: 74207528
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.