Documentation
Preparing search index...
@orca-so/common-sdk
DecimalUtil
Class DecimalUtil
Index
Constructors
constructor
Methods
adjust
Decimals
from
BN
from
Number
to
BN
Constructors
constructor
new
DecimalUtil
()
:
DecimalUtil
Returns
DecimalUtil
Methods
Static
adjust
Decimals
adjustDecimals
(
input
:
Decimal
,
shift
?:
number
)
:
Decimal
Parameters
input
:
Decimal
shift
:
number
= 0
Returns
Decimal
Static
from
BN
fromBN
(
input
:
BN
,
shift
?:
number
)
:
Decimal
Parameters
input
:
BN
shift
:
number
= 0
Returns
Decimal
Static
from
Number
fromNumber
(
input
:
number
,
shift
?:
number
)
:
Decimal
Parameters
input
:
number
shift
:
number
= 0
Returns
Decimal
Static
to
BN
toBN
(
input
:
Decimal
,
shift
?:
number
)
:
BN
Parameters
input
:
Decimal
shift
:
number
= 0
Returns
BN
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
adjust
Decimals
from
BN
from
Number
to
BN
Documentation
Loading...