The Hyper Programming Language |
home | language reference | compiler | hyper on launchpad |
This is the class reference of built-in type real.
sealed class real : object
This class represents the widest native floating point type, at least 64 bits.
procedure new()
Default constructor. Creates a real with value 0.
procedure new(r : * real)
Copy constructor.
implicit procedure new(b : byte)
Implicit conversion constructor.
implicit procedure new(i : int16)
Implicit conversion constructor.
implicit procedure new(n : nat16)
Implicit conversion constructor.
implicit procedure new(i : int32)
Implicit conversion constructor.
implicit procedure new(s : single)
Implicit conversion constructor.
implicit procedure new(d : double)
Implicit conversion constructor.
none yet
Warning: this is preliminary syntax with the purpose of documenting the operators of this class. Nothing official yet!
const operator+() : real
Unary plus.
const operator-() : real
Unary minus.
const operator++() : real
Successor.
const operator--() : real
Predecessor.
not yet documented
operator++()
Increment operator.
operator--()
Decrement operator.
operator=(r : real)
Simple assignment operator.
operator+=(r : real)
Add-assign operator.
operator-=(r : real)
Subtract-assign operator.
operator*=(r : real)
Multiply-assign operator.
operator/=(r : real)
Divide-assign operator.