Round
XML
<math:round var="var" precision="int" type="half-infinity">
float
</math:round>
<math:round /> rounds a value to a number of decimal digits, specified by a given precision.
Attributes
| Name | Type | Description | Defined By |
|---|---|---|---|
| var | var | Result variable name | math:round |
| precision | int | Precision | math:round |
| type | type | Rounding type | math:round |
Results
| Binding | Type | Predicate |
|---|---|---|
| var | float | N/A |
Examples
XML
<output>
<math:round precision="2">17.213482971852</math:round>
</output>
<!-- 17.21 -->