sorry, they were obvious gestures at what we thought was
fairly straightforward.  the function wont do that basically,
not from what i can tell.  but, in order to do so, you would have to
create a value that is .07 like this...

<cfset theNumber = 7 / 100>

and then you can strip the leading zero off...

<cfoutput>#right(theNumber,3)#</cfoutput>

but that would only work if you knew the results were going to look like
0.07, the actual value of 7 / 100 in cfmx.

there are a myriad of ways to do this, im sure, but you could start
here...
i couldnt get the mask thingie to work and not show the leading zero??
anyone??

tony

-----Original Message-----
From: Robert Orlini [mailto:[EMAIL PROTECTED]
Sent: Monday, November 17, 2003 3:43 PM
To: CF-Talk
Subject: RE: numberformat

Thanks. How do I incorporate the / 100 into the mask. I'm new to this
and am getting errors.


Robert O.

-----Original Message-----
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: Monday, November 17, 2003 3:37 PM
To: CF-Talk
Subject: RE: numberformat

yeah, i was about to say, math.

-----Original Message-----
From: Bryan Stevenson [mailto:[EMAIL PROTECTED]
Sent: Monday, November 17, 2003 3:35 PM
To: CF-Talk
Subject: Re: numberformat

divide by 100 ;-)

I'm not sure you can make a 7 display as a decimal value using
masks...but dividing by 100 will get ya there

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]

---------------------------------------------------------
Macromedia Associate Partner
www.macromedia.com
---------------------------------------------------------
Vancouver Island ColdFusion Users Group
Founder & Director
www.cfug-vancouverisland.com
  ----- Original Message -----
  From: Robert Orlini
  To: CF-Talk
  Sent: Monday, November 17, 2003 12:17 PM
  Subject: numberformat

  How do I apply the numberformat mask to make a 7 view as .07?

  Thanks.

  Robert O.

  _____  


[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to