Zum Hauptinhalt springen

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

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

Results

BindingTypePredicate
varfloatN/A

Examples

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

<!-- 17.21 -->