Drip
Drip
Positive decimal integer string in Drip
Kind: global class
instance
.toCFX() ⇒
string.toGDrip() ⇒
string
static
new Drip(value)
Param
Type
value
number | string | BigInt
Example
> new Drip(1.00)
[String (Drip): '1']
> new Drip('0xab')
[String (Drip): '171']drip.toCFX() ⇒ string
stringGet CFX number string
Kind: instance method of Drip
Example
> Drip(1e9).toCFX()
"0.000000001"drip.toGDrip() ⇒ string
stringGet GDrip number string
Kind: instance method of Drip
Example
> Drip(1e9).toGDrip()
"1"Drip.fromCFX(value) ⇒ Drip
DripGet Drip string from CFX
Kind: static method of Drip
Param
Type
value
string | number | BigInt
Example
> Drip.fromCFX(3.14)
[String (Drip): '3140000000000000000']
> Drip.fromCFX('0xab')
[String (Drip): '171000000000000000000']Drip.fromGDrip(value) ⇒ Drip
DripGet Drip string from GDrip
Kind: static method of Drip
Param
Type
value
string | number | BigInt
Example
> Drip.fromGDrip(3.14)
[String (Drip): '3140000000']
> Drip.fromGDrip('0xab')
[String (Drip): '171000000000']Last updated
Was this helpful?