Preparing search index...
The search index is not available
Saber Token Functions Documentation
Saber Token Functions Documentation
@saberhq/token-fns
Module @saberhq/token-fns - v0.0.0
@saberhq/token-fns
Utilities for mathematical operations around tokens.
License
Apache-2.0
Index
Enumerations
Rounding
Classes
Fraction
Percent
Price
Token
Amount
Token
Amount
Overflow
Token
Amount
Underflow
Interfaces
Fraction
Like
Fraction
Object
IFormat
Uint
Number
Format
Percent
Object
Token
Variables
DEFAULT_
DECIMAL_
SEPARATOR
DEFAULT_
GROUP_
SEPARATOR
DEFAULT_
LOCALE_
DECIMAL_
SEPARATOR
DEFAULT_
LOCALE_
GROUP_
SEPARATOR
MAX_
U256
MAX_
U64
ONE
TEN
ZERO
Functions
as
Number
convert
Amount
To
Number
convert
Price
To
Number
format
Amount
Exact
format
Amount
Fixed
format
Amount
Locale
format
Amount
Significant
format
Price
Fixed
format
Price
Fixed
Quote
format
Price
Significant
format
Units
fraction
From
Object
fraction
To
Fixed
fraction
To
Significant
get
Decimal
Separator
get
Group
Separator
get
Separator
make
Decimal
Multiplier
parse
Amount
From
String
percent
To
Fixed
percent
To
Significant
strip
Trailing
Zeroes
validate
U256
validate
U64
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Modules
Saber
Token
Functions
Documentation
@saberhq/bigintish -
v0.0.0
@saberhq/fraction -
v0.0.0
@saberhq/toformat -
v0.0.0
@saberhq/token-
fns -
v0.0.0
Rounding
Fraction
Percent
Price
Token
Amount
Token
Amount
Overflow
Token
Amount
Underflow
Fraction
Like
Fraction
Object
IFormat
Uint
Number
Format
Percent
Object
Token
DEFAULT_
DECIMAL_
SEPARATOR
DEFAULT_
GROUP_
SEPARATOR
DEFAULT_
LOCALE_
DECIMAL_
SEPARATOR
DEFAULT_
LOCALE_
GROUP_
SEPARATOR
MAX_
U256
MAX_
U64
ONE
TEN
ZERO
as
Number
convert
Amount
To
Number
convert
Price
To
Number
format
Amount
Exact
format
Amount
Fixed
format
Amount
Locale
format
Amount
Significant
format
Price
Fixed
format
Price
Fixed
Quote
format
Price
Significant
format
Units
fraction
From
Object
fraction
To
Fixed
fraction
To
Significant
get
Decimal
Separator
get
Group
Separator
get
Separator
make
Decimal
Multiplier
parse
Amount
From
String
percent
To
Fixed
percent
To
Significant
strip
Trailing
Zeroes
validate
U256
validate
U64
Generated using
TypeDoc