Describe the feature
Describe the feature
Simplicityhl-std must include functions for convenient uint type conversion.
Functions for safe conversion:
- From
u8 to: u16, u32, u64, u128, u256
- From
u16 to: u32, u64, u128, u256
- From
u32 to: u64, u128, u256
- From
u64 to: u128, u256
- From
u128 to: u256
Functions for conversion with overflow checking:
- From
u16 to: u8
- From
u32 to: u16, u8
- From
u64 to: u32, u16, u8
- From
u128 to: u64, u32, u16, u8
- From
u256 to: 128, u64, u32, u16, u8
Describe the feature
Describe the feature
Simplicityhl-std must include functions for convenient uint type conversion.
Functions for safe conversion:
u8to:u16,u32,u64,u128,u256u16to:u32,u64,u128,u256u32to:u64,u128,u256u64to:u128,u256u128to:u256Functions for conversion with overflow checking:
u16to:u8u32to:u16,u8u64to:u32,u16,u8u128to:u64,u32,u16,u8u256to:128,u64,u32,u16,u8