struct Nota::Integer
- Nota::Integer
- Struct
- Value
- Object
Overview
Nota::Integer represents an arbitrary size nota-encoded integer.
The representation is intended for data transfer and thus is not suitable for arithmetic operations. To use the value it should be converted to an integer type of suitable size (u8..u128, i8..i128, or BigInt).
Defined in:
nota/integer.crConstructors
Instance Method Summary
- #bit_length : Int32
- #negative? : Bool
- #to_big_i : BigInt
- #to_i : Int32
- #to_i128 : Int128
- #to_i16 : Int16
- #to_i32 : Int32
- #to_i64 : Int64
- #to_i8 : Int8
- #to_u : UInt32
- #to_u128 : UInt128
- #to_u16 : UInt16
- #to_u32 : UInt32
- #to_u64 : UInt64
- #to_u8 : UInt8