numberToFixed

Returns a numeric value formatted with a fixed length filled with a custom char on the left and right sides.

1
{{$numberToFixed [value]}}
Example
format JSON XML
Data JSON
1
2
3
4
5
{
"Product": {
"price": "5350200.6450"
}
}
HTML
1
{{$numberToFixed Product.price char="0" leftLength=10 rightLength=4}}
Result
Data XML
1
2
<Product price="5350200.6450">
</Product>
HTML
1
{{$numberToFixed Product._price char="0" leftLength=10 rightLength=4}}
Result

Params

1
2
3
4
5
6
{{$numberToFixed
"string value"
char="0"
leftLength=2
rightLength=2
}}