0x1 Move data type
Common basic data types are available in the Move language
1. Integer
The integer type has u8
a value range of 2 to the 8th power - 1, u16
, u32
a value range of 2 to the 32nd power - 1, u64
, u128
, u256
a value range of 2 to the 256th power - 1. Integer values are implicitly copied, so no copy
modification is required.
2. Boolean
Boolean has: bool
, too common to have only true
orfalse
3. Address type
Address type: address
, occupying 128-bit (16 bytes) in size, implicitly copyable without explicit declaration copy
. Generally expressed as
let a1: address = @0x1; // 全称是 0x00000000000000000000000000000001
let