【Aptos and Sui smart contract】 (Move long story short) #02 - Basic data types and functions

0x1 Move data type

Common basic data types are available in the Move language

1. Integer

The integer type has u8a value range of 2 to the 8th power - 1, u16, u32a value range of 2 to the 32nd power - 1, u64, u128, u256a value range of 2 to the 256th power - 1. Integer values ​​are implicitly copied, so no copymodification is required.

2. Boolean

Boolean has: bool, too common to have only trueorfalse

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

Guess you like

Origin blog.csdn.net/u013538542/article/details/128386718