Primitives
#
Primitive TypesRogue 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 typesIntegers are represented by u8
, u64
and u128
; Possible integer notations are:
as
#
Operator 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
:
#
BooleanBoolean 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.
#
AddressAddress is an identifier of sender (or wallet) in blockchain. The very basic operations which require address type are sending coins and importing methods.