ROUND

I l @ ve RuBoard

Used to round a number to the nearest whole number. Does not round to decimal places.

Syntax

 Round(number_to_round) 

Parameters

Round must be supplied with a number variable to round.

Example

 <!---Round a number to 2 decimal places --->  <cfoutput>   <cfset number = number * 100>   <cfset number = round(number)>   <cfset number  number / 100> <cfoutput>   #number# </cfoutput> 
I l @ ve RuBoard


Macromedia ColdFusion 5. Training from the Source
Macromedia ColdFusion 5 Training from the Source (With CD-ROM)
ISBN: 0201758474
EAN: 2147483647
Year: 2002
Pages: 99
Authors: Kevin Schmidt

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net