The Hyper Programming Language |
home | language reference | compiler | hyper on launchpad |
This is the class reference of built-in type int16.
sealed class int16 : object
This class represents a signed 16-bit integer.
procedure new()
Default constructor. Creates an int16 with value 0.
procedure new(i : * int16)
Copy constructor.
implicit procedure new(b : byte)
Implicit conversion constructor.
const procedure abs() : nat16
Returns the absolute value of the signed number.
procedure turnSign()
Turns the sign of this number. A negative number becomes positive and a positive number becomes negative.
Warning: this is preliminary syntax with the purpose of documenting the operators of this class. Nothing official yet!
const operator+() : int16
Unary plus.
const operator-() : int16
Unary minus.
const operator++() : int16
Successor.
const operator--() : int16
Predecessor.
not yet documented
operator++()
Increment operator.
operator--()
Decrement operator.
operator=(i : int16)
Simple assignment operator.
operator+=(i : int16)
Add-assign operator.
operator-=(i : int16)
Subtract-assign operator.
operator*=(i : int16)
Multiply-assign operator.
operator/=(i : int16)
Divide-assign operator.
operator%=(i : int16)
Modulo-assign operator.