<CFSET rndNumb = 4.585 * 1000>

This will make 4.585 = 4585
<CFSET  newrndnumb = rndnumb / 10

This will give you 458.5

<CFSET rndnum = Round(newrndnumb)

This will give you 459

<CFSET final roundnumb = rndnum / 100>

This should give you 4.59

Long way around but it will work.

Larry Juncker
Senior Cold Fusion Programmer
Heartland Communications Group, Inc.


-----Original Message-----
From: Robert Everland [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 11, 2000 11:22 AM
To: CF-Talk
Subject: Round Decimals


        Ok I know of ceiling and round but how do I round decimals. Say I
have 4.59 how do I get it to say 4.6 or if I have 4.585 to be 4.59

Robert Everland III
Web Developer
Dixon Ticonderoga
----------------------------------------------------------------------------
--
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.

Reply via email to