Lsnumberformat - MACROMEDIA COLDFUSION 5 - CFML Reference

Cfml reference
Hide thumbs Also See for COLDFUSION 5 - CFML:
Table of Contents

Advertisement

526

LSNumberFormat

Description
Formats a number using the locale convention. If mask is omitted, the number is
formatted as an integer.
Category
International functions
LSNumberFormat(number [, mask ])
Syntax
Parameters
Parameter
number
mask
LSNumberFormat Mask Characters
The following table lists the
Character
_ (underscore)
9
.
0
( )
+
-
,
L,C
$
^
Description
The number to format
LSNumberFormat mask characters apply, except that ($) dollar,
(,) comma, and (.) dot are mapped to their locale-specific
counterparts
LSNumberFormat
Meaning
Optional digit placeholder.
Optional digit placeholder. Same as _, but shows decimal places
more clearly.
Specifies the location of a mandatory decimal point.
Located to the left or right of a mandatory decimal point, to force
padding with zeros.
Places parentheses around the mask if the number is less than 0.
Places + in front of positive numbers, - (minus sign) in front of
negative numbers.
Place " " (space) in front of positive, - (minus sign) in front of
negative numbers.
Separates thousands with commas.
Specifies left-justify or center-justify a number within the width of
the mask column. L or C must appear as the first character of the
mask. By default, numbers are right-justified.
Places a dollar sign in front of the formatted number. $ must
appear as the first character of the mask.
Separates left from right formatting.
Chapter 3 ColdFusion Functions
mask characters.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 5 - CFML and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Coldfusion 5

Table of Contents