round
Returns the rounded value of the current value.
Syntax
round([scale])
Parameter |
Description |
---|---|
|
The number of decimals, default is 2. |
Examples
// round to 2 decimals (default)
$('AVar').round()
// round to specified number of decimals
$('AVar').round(4)