Skip to main content

Format number

XML
<math:format var="var" countdec="int" decpoint="." separator=",">
float
</math:format>

<math:format /> returns the formatted representation of a value with a fixed number of decimal digits and grouped thousands.

Attributes

NameTypeDescriptionDefined By
varvarResult variable name math:format
countdecintNumber of decimal digits math:format
decpointstringDecimal point math:format
separatorstringThousands separator math:format

Results

BindingTypePredicate
varstringN/A

Examples

XML
<output>
<math:format countdec="2">1792702.213482971852</math:format>
</output>

<!-- 1,792,702.21 -->