NumberFormat
Method Signature
NumberFormat(number=[any], mask=[string], locale=[string])Arguments
Argument
Type
Required
Description
Default
Examples
Format to 2 decimal places
<!--- 1234.00 ---><bx:output>1.234 ('__.00') -> <!--- 1.23 --->#numberFormat( 1.234, "__.00" )#<br/>
1234 ('__.00') -> #numberFormat( 1234, "__.00" )#<br/> </bx:output>0 and 9 mask
<bx:output>
123 ('00000') -> #numberFormat( 123, "00000" )#<br/>
123 ('99999') -> #numberFormat( 123, "99999" )#<br/>
123 ('99.99999') -> #numberFormat( 123.12, "99.99999" )#<br/>
</bx:output>_ mask
+ & - mask
, comma
L,C mask
Two decimal places, decimal input
Two decimal places, integer input
Zero will pad zeros; nine doesn’t
show positive/negative sign
Formats to a dollar format (US)
Additional Examples
Related
Last updated
Was this helpful?
