Skip to content

BigInt.ToBytes

Name - Description Default Type
<input> Big integer represented as bytes. Bytes
<output> Bytes
Bits The desired amount of bits for the output or 0 for automatic packing. 0 Int

Examples

1
2
3
4
5
6
42 (BigInt)
(BigInt.ToBytes
 ;:Bits
 16)
(ToHex)
(Assert.Is "0x002a" true)