I would have suggested Ceiling a long time ago if you described then what
you had been trying to achieve to begin with. Also for the others with
masking, you can do this as a maks "_999" and if the number goes over 3 in
length it will not matter, so you do not need to write code to format the
string to your desired length, and if you want a $ in there just do
"$_9999.99"

Simple when you actually read the tags usage and read about masks:-)

but Rick, yeah ceiling is your friend in this case.



On 3/13/07, Rick Faircloth <[EMAIL PROTECTED]> wrote:
>
> And we have a winner!
>
> Ceiling is perfect for the job!
>
> Thanks, Josh and everyone for the help... I think this turned
> out to be worse than trying to solve the original
> js validation issue!  :oP
>
> Rick
>
> -----Original Message-----
> From: Josh Nathanson [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 12, 2007 6:05 PM
> To: CF-Talk
> Subject: Re: What is wrong with this?
>
> >That mask is supposed to round the number up to the
> >near who number, or, in this case, 255900
>
> I would argue that since you're trying to round a decimal up to the next
> highest integer, Ceiling is the appropriate function, since that is
> exactly
> the intent of that function.  NumberFormat can be used of course, but its
> intent is different, and the implementation is more difficult.
>
> -- Josh
>
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 by AdobeĀ®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272637
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to