Primitives
Primitive Types#
Rogue has few built-in primitive types to represent numbers, addresses and boolean values: integers (u8, u64, u128), boolean and address.
Rogue does not have string type or floating point numbers.
Integer types#
Integers are represented by u8, u64 and u128; Possible integer notations are:
Operator as#
When you need to compare values or when function argument requires integer of different size you can cast your integer variable to another size by using operator as:
Boolean#
Boolean type is just the one you're used to. Two constant values: false and true - both can only mean one thing - a value of bool type.
Address#
Address is an identifier of sender (or wallet) in blockchain. The very basic operations which require address type are sending coins and importing methods.