Globals
Stimulsoft
System
Internals
formatNumber
Namespace formatNumber
Callable
format
Number
(
value
:
number
, format
:
string
, info
?:
NumberFormatInfo
)
:
string
Parameters
value:
number
format:
string
Optional
info:
NumberFormatInfo
Returns
string
Index
Type aliases
Custom
Format
Custom
Format
Element
Variables
Specifier
Token
Text
Token
custom
Format
Regexp
Functions
currency
Format
custom
Format
decimal
Format
exponential
Format
fixed
Point
Format
general
Format
get
Fixed
Point
Number
Parts
hexadecimal
Format
normalize
For
Format
numeric
Format
parse
Custom
Format
String
percent
Format
place
Currency
Value
round
Number
round
Trip
Format
seems
ToBe
Zero
split
ToGroups
split
ToGroups
Array
trim
Trailing
Zeros
Type aliases
Custom
Format
Custom
Format
:
object
Type declaration
dot
Index
:
number
effective
Numbers
After
Dot
:
number
effective
Numbers
Before
Dot
:
number
exp
Index
:
number
numbers
After
Dot
:
number
numbers
Before
Dot
:
number
scaling
:
number
tokens
:
CustomFormatElement
[]
use
Group
Separators
:
boolean
Custom
Format
Element
Custom
Format
Element
:
object
Type declaration
token
:
string
type
:
typeof SpecifierToken
|
typeof TextToken
Variables
Const
Specifier
Token
Specifier
Token
:
1
= 1
Const
Text
Token
Text
Token
:
2
= 2
Const
custom
Format
Regexp
custom
Format
Regexp
:
RegExp
= /'(?:[^']|\\')*'|"(?:[^"]|\\")*"|['"]|\\.|0|#|\.|,|%|‰|[Ee][+-]?0+|(.)/g
Functions
currency
Format
currency
Format
(
value
:
number
, precision
?:
number
, info
?:
NumberFormatInfo
)
:
string
Parameters
value:
number
Optional
precision:
number
Optional
info:
NumberFormatInfo
Returns
string
custom
Format
custom
Format
(
numberParts
:
string
[]
, format
:
CustomFormat
, info
?:
NumberFormatInfo
)
:
string
Parameters
numberParts:
string
[]
format:
CustomFormat
Optional
info:
NumberFormatInfo
Returns
string
decimal
Format
decimal
Format
(
value
:
number
, precision
?:
number
, info
?:
NumberFormatInfo
)
:
string
Parameters
value:
number
Optional
precision:
number
Optional
info:
NumberFormatInfo
Returns
string
exponential
Format
exponential
Format
(
value
:
number
, precision
?:
number
, isUpper
?:
boolean
, info
?:
NumberFormatInfo
, minExpDigits
?:
number
)
:
string
Parameters
value:
number
Optional
precision:
number
Optional
isUpper:
boolean
Optional
info:
NumberFormatInfo
Default value
minExpDigits:
number
= 3
Returns
string
fixed
Point
Format
fixed
Point
Format
(
value
:
number
, precision
?:
number
, info
?:
NumberFormatInfo
)
:
string
Parameters
value:
number
Optional
precision:
number
Optional
info:
NumberFormatInfo
Returns
string
general
Format
general
Format
(
value
:
number
, precision
?:
number
, isUpper
?:
boolean
, info
?:
NumberFormatInfo
)
:
string
Parameters
value:
number
Optional
precision:
number
Optional
isUpper:
boolean
Optional
info:
NumberFormatInfo
Returns
string
get
Fixed
Point
Number
Parts
get
Fixed
Point
Number
Parts
(
value
:
number
, precision
:
number
, negativeSign
?:
string
)
:
string
[]
Parameters
value:
number
precision:
number
Optional
negativeSign:
string
Returns
string
[]
hexadecimal
Format
hexadecimal
Format
(
value
:
number
, precision
?:
number
, isUpper
?:
boolean
)
:
string
Parameters
value:
number
Optional
precision:
number
Optional
isUpper:
boolean
Returns
string
normalize
For
Format
normalize
For
Format
(
value
:
number
, format
:
CustomFormat
, info
?:
NumberFormatInfo
)
:
string
[]
Parameters
value:
number
format:
CustomFormat
Optional
info:
NumberFormatInfo
Returns
string
[]
numeric
Format
numeric
Format
(
value
:
number
, precision
?:
number
, info
?:
NumberFormatInfo
)
:
string
Parameters
value:
number
Optional
precision:
number
Optional
info:
NumberFormatInfo
Returns
string
parse
Custom
Format
String
parse
Custom
Format
String
(
format
:
string
)
:
object
Parameters
format:
string
Returns
object
dot
Index
:
number
effective
Numbers
After
Dot
:
number
effective
Numbers
Before
Dot
:
number
exp
Index
:
number
numbers
After
Dot
:
number
numbers
Before
Dot
:
number
scaling
:
number
tokens
:
CustomFormatElement
[]
use
Group
Separators
:
boolean
percent
Format
percent
Format
(
value
:
number
, precision
?:
number
, info
?:
NumberFormatInfo
)
:
string
Parameters
value:
number
Optional
precision:
number
Optional
info:
NumberFormatInfo
Returns
string
place
Currency
Value
place
Currency
Value
(
value
:
string
, isPositive
:
boolean
, negativeSign
:
string
, currencySymbol
:
string
, patternNumber
:
number
)
:
string
Parameters
value:
string
isPositive:
boolean
negativeSign:
string
currencySymbol:
string
patternNumber:
number
Returns
string
Const
round
Number
round
Number
(
v
:
number
, s
:
number
)
:
number
Parameters
v:
number
s:
number
Returns
number
round
Trip
Format
round
Trip
Format
(
value
:
number
, info
?:
NumberFormatInfo
)
:
string
Parameters
value:
number
Optional
info:
NumberFormatInfo
Returns
string
seems
ToBe
Zero
seems
ToBe
Zero
(
intPart
:
string
, fraction
:
string
)
:
boolean
Parameters
intPart:
string
fraction:
string
Returns
boolean
split
ToGroups
split
ToGroups
(
intPart
:
string
, groupSeparator
?:
string
, groupSizes
?:
number
[]
)
:
string
Parameters
intPart:
string
Optional
groupSeparator:
string
Optional
groupSizes:
number
[]
Returns
string
split
ToGroups
Array
split
ToGroups
Array
(
intPart
:
string
, groupSizes
?:
number
[]
)
:
string
[]
Parameters
intPart:
string
Optional
groupSizes:
number
[]
Returns
string
[]
trim
Trailing
Zeros
trim
Trailing
Zeros
(
value
:
string
, decimalSeparator
:
string
)
:
string
Parameters
value:
string
decimalSeparator:
string
Returns
string
Globals
Sti
Options
Stimulsoft
Base
Blockly
Dashboard
Data
Designer
Report
System
Collections
Crypt
Data
Drawing
Globalization
IO
Internals
format
Number
Text
Xml
Viewer
Custom
Format
Custom
Format
Element
Specifier
Token
Text
Token
custom
Format
Regexp
currency
Format
custom
Format
decimal
Format
exponential
Format
fixed
Point
Format
general
Format
get
Fixed
Point
Number
Parts
hexadecimal
Format
normalize
For
Format
numeric
Format
parse
Custom
Format
String
percent
Format
place
Currency
Value
round
Number
round
Trip
Format
seems
ToBe
Zero
split
ToGroups
split
ToGroups
Array
trim
Trailing
Zeros
Generated using
TypeDoc