Numbers
to-hex
- Signature
- Example
(x Number) | to-hex(prefix Bool?) | (y String)
16 to-hex(true) => "0xF"
Converts number x
to a hex string y
.
Adds 0x
prefix when prefix
is true
.
to-hex
(x Number) | to-hex(prefix Bool?) | (y String)
16 to-hex(true) => "0xF"
Converts number x
to a hex string y
.
Adds 0x
prefix when prefix
is true
.