Macromedia ColdFusion 5 Training from the Source (With CD-ROM)

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

Категории