This would round to the nearest penny.  It should b

<CFSET yourNumber = ROUND(yourNumber * 20)/20>

--K

-----Original Message-----
From: !jeff! [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 30, 2000 5:22 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Rounding to the nearest nickel?


<CFSET yourNumber = (#ROUND(yourNumber * 100)# / 100)>




At 06:53 PM 8/30/2000 -0500, [EMAIL PROTECTED] wrote:
> > I seem to have a dilema and I would hope that someone on this
> > list could
> > help me. I need to round a number to the nearest nickel for
> > instance 10.225
> > should go to 10.20 and so on. With the round function I can
> > only round to
> > the nearest whole number. I have no idea what to do and would really
> > appreciate any help in pointing me in the right direction.
>
>Try this:
>
><cfset myRoundedNumber = Round(myRawNumber*20)/20>
>
>Ron Allen Hornbaker
>President/CTO
>Humankind Systems, Inc.
>http://humankindsystems.com
>mailto:[EMAIL PROTECTED]
>
>
>---------------------------------------------------------------------------
---
>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.

!j!

The mark of mediocrity is searching for the precedent.

!jeff! sherwood     Director of BIGWORDS.com Web Site Design / JEDI
                                               BIGWORDS.com worker#2
[EMAIL PROTECTED]                               [EMAIL PROTECTED]
.r.e.c.o.v.e.r.e.d.n.e.t.s.c.a.p.e.u.s.e.r. . . . 415.543.1400.x300

----------------------------------------------------------------------------
--
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