The Hyper Programming Language |
home | language reference | compiler | hyper on launchpad |
This is the class reference of built-in type nat64.
sealed class nat64 : object
This class represents an unsigned 64-bit integer (natural number).
procedure new()
Default constructor. Creates a nat64 with value 0.
procedure new(n : * nat64)
Copy constructor.
implicit procedure new(b : byte)
Implicit conversion constructor.
implicit procedure new(n : nat16)
Implicit conversion constructor.
implicit procedure new(n : nat32)
Implicit conversion constructor.
const procedure truncateToSigned() : int64
Converts the unsigned number to a signed version. The most significant bit is lost.
Warning: this is preliminary syntax with the purpose of documenting the operators of this class. Nothing official yet!
const operator+() : nat64
Unary plus.
const operator++() : nat64
Successor.
const operator--() : nat64
Predecessor.
not yet documented
operator++()
Increment operator.
operator--()
Decrement operator.
operator=(n : nat64)
Simple assignment operator.
operator+=(n : nat64)
Add-assign operator.
operator-=(n : nat64)
Subtract-assign operator.
operator*=(n : nat64)
Multiply-assign operator.
operator/=(n : nat64)
Divide-assign operator.
operator%=(n : nat64)
Modulo-assign operator.