Skip to main content

Convert number

Anatomy

<math:convert var="var" from="dec" to="dec">
undefined
</math:convert>

Description: MATH:CONVERT converts the number representation of a value from a source representation to a target representation.

Attributes

NameTypeDescriptionDefined By
varvarResult variable name math:convert
fromtypeSource representation math:convert
totypeTarget representation math:convert

Results:

BindingTypePredicate
varintfloat

Examples

Example

<output>
<math:convert from="hex" to="bin">7cd5a72c</math:convert>
</output>

<!-- 1111100110101011010011100101100 -->