try: <cfset dollar = 9.95>, <cfset dollar = 9+0.9+0.05>, and <cfset dollar = 995*10^-2>
and display them with numberformat(cents,"___._____________") for example to see what is exactly in there. HTH. Terry On 13/08/07, Steve Onnis <[EMAIL PROTECTED]> wrote: > > I would have thought from a decimal though. Looks like it is VERY > literal > > ------------------------------ > *From:* [email protected] [mailto:[EMAIL PROTECTED] *On > Behalf Of *grant > *Sent:* Monday, 13 August 2007 11:38 AM > *To:* [email protected] > *Subject:* [cfaussie] Re: Strange FIX() behaviour > > it seems that it's working literally (from the docs): > If *number* is greater than or equal to 0, the closest integer less than * > number*. > > your number is 995, closest number less than 995 is 994. > > still a bit weird tho. > > On 13/08/07, Steve Onnis <[EMAIL PROTECTED]> wrote: > > > > Has anyone come across this before? > > > > <cfset dollar = 9.95 /> > > <cfset cents = dollar * 100 /> > > <cfoutput> > > #FIX(cents)# > > </cfoutput> > > > > outputs 994 > > > > I could maybe understand this is i had more decimal places but it is a > > plain 2 point decimal value. > > > > Any ideas? > > > > > > > > Steve Onnis Director / Head Developer > > > > [EMAIL PROTECTED] > > > > +61 3 9001 2258 > > > > 0401 667 996 > > > > www.inevative.com.au > > <http://www.novahost.com.au> <http://www.threesquares.com.au> > > <http://www.smsonline.com.au> > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~----------~----~----~----~------~----~------~--~---
<<inline: threesquares.gif>>
<<inline: inevativeLogo_small.jpg>>
<<inline: novahost.gif>>
<<inline: web.jpg>>
<<inline: phone.jpg>>
<<inline: mobile.jpg>>
<<inline: email.jpg>>
<<inline: smsonline.gif>>
