Daniel Kessler wrote:

> How do I make 34.23987234 into 34.2, without converting it to a string.
> btw, what's this called, in math when you give it a value the number
> of values on the right side of a number?

NumberFormat() is probably what you're after, certainly for display
purposes.

If you're doing calculations, then save rounding your number to 1
decimal place until you've completed all the calculations.

You can find documentation for mathmatical functions for CFMX here :
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/functi14.htm
and for display functions here :
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/functio8.htm

Hope this helps.

Stephen
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to