Round()
Rounds a number to the closest integer. If rounding to a specific number of decimals is needed, use the precision attribute to define the number of decimals to be rounded to.
	Round( number=number, precision=number );
	
	Returns: Number
| Argument | Description | Default | 
|---|---|---|
| 
								 
									number
								 
								
									number,
									
										required
									
								
							 | 
							
								edit
								 Number to round  | 
 								|
| 
								 
									precision
								 
								
									number,
									
										optional
									
								
							 | 
							
								edit
								 Number of decimal points to round to  | 
 								
 									 0  | 
						
Examples
edit	var pi = 3.1415926535;
	var pi_rounded = Round(pi, 2);
	echo(pi); // 3.1415926535
	echo('<br>');
	echo(pi_rounded); // 3.14
See also
- Numbers
 - numeric.round()
 - Search Issue Tracker open_in_new
 - Search Lucee Test Cases open_in_new (good for further, detailed examples)