OK I think there was a replacement UDF on cflib.org for this function to get
round that problem. If memory serves.

Russ 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 
> Sent: 17 June 2004 18:50
> To: [EMAIL PROTECTED]
> Subject: RE: [ cf-dev ] DecimalFormat bug
> 
> 
> Round just rounds to the nearest integer, which isn't going 
> to help (well maybe in this theoretical one).  The actual 
> numbers I'm using are slightly different, e.g. 123.405 - 
> could be either 123.41 or 123.42 depending on the vagaries of 
> CF.  Don't really want to go to the hassle of splitting the 
> number up, rounding the part after the decimal, then 
> re-joining.  I guess I'll have to use NumberFormat... or 
> perhaps ignore it!
> 
> 
> 
> 
>                                                               
>                                                         
>                     "Snake                                    
>                                                         
>                     Hollywood"              To:     
> <[EMAIL PROTECTED]>                                     
>                     <[EMAIL PROTECTED]        cc:               
>                                                         
>                     kepit.net>              Subject:     RE: 
> [ cf-dev ] DecimalFormat bug                             
>                                                               
>                                                         
>                     17/06/2004 18:39                          
>                                                         
>                     Please respond                            
>                                                         
>                     to dev                                    
>                                                         
>                                                               
>                                                         
>                                                               
>                                                         
> 
> 
> 
> Use Round() to round it down.
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> > Sent: 17 June 2004 18:03
> > To: [EMAIL PROTECTED]
> > Subject: [ cf-dev ] DecimalFormat bug
> >
> > This has probably been covered before.  In CF5:
> >
> > #DecimalFormat(1.005)#
> > #DecimalFormat(2.005)#
> >
> > gives:
> >
> > 1.00
> > 2.01
> >
> > What's the fix/workaround for this?
> >
> >
> > --
> > These lists are syncronised with the CFDeveloper forum at 
> > http://forum.cfdeveloper.co.uk/
> > Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> >
> > CFDeveloper Sponsors and contributors:- *Hosting and 
> support provided 
> > by CFMXhosting.co.uk* ::
> > *ActivePDF provided by activepdf.com*
> >       *Forums provided by fusetalk.com* :: *ProWorkFlow provided by 
> > proworkflow.com*
> >            *Tutorials provided by helmguru.com* :: *Lists hosted by 
> > gradwell.com*
> >
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> --
> These lists are syncronised with the CFDeveloper forum at 
> http://forum.cfdeveloper.co.uk/
> Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> CFDeveloper Sponsors and contributors:-
> *Hosting and support provided by CFMXhosting.co.uk* :: 
> *ActivePDF provided by activepdf.com*
>       *Forums provided by fusetalk.com* :: *ProWorkFlow provided by
> proworkflow.com*
>            *Tutorials provided by helmguru.com* :: *Lists hosted by
> gradwell.com*
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> 
> --
> These lists are syncronised with the CFDeveloper forum at 
> http://forum.cfdeveloper.co.uk/
> Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>  
> CFDeveloper Sponsors and contributors:-
> *Hosting and support provided by CFMXhosting.co.uk* :: 
> *ActivePDF provided by activepdf.com*
>       *Forums provided by fusetalk.com* :: *ProWorkFlow 
> provided by proworkflow.com*
>            *Tutorials provided by helmguru.com* :: *Lists 
> hosted by gradwell.com*
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> 


-- 
These lists are syncronised with the CFDeveloper forum at 
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
 
CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by 
activepdf.com*
      *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com*
           *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com*

To unsubscribe, e-mail: [EMAIL PROTECTED]

Reply via email to