Skip to main content

Round

Anatomy

<math:round var="var" precision="int">
float
</math:round>

Description: MATH:ROUND rounds a value half away from zero to a number of decimal digits, specified by a given precision.

Attributes

NameTypeDescriptionDefined By
varvarResult variable name math:round
precisionintPrecision math:round

Results:

BindingTypePredicate
varfloatN/A

Examples

Example

<output>
<math:round precision="2">17.213482971852</math:round>
</output>

<!-- 17.21 -->