The Hyper Programming Language |
home | language reference | compiler | hyper on launchpad |
This is the class reference of built-in type single.
sealed class single : object
This class represents the IEEE 754 single precision floating point number (32-bit).
procedure new()
Default constructor. Creates a single with value 0.
procedure new(s : * single)
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.
none yet
Warning: this is preliminary syntax with the purpose of documenting the operators of this class. Nothing official yet!
const operator+() : single
Unary plus.
const operator-() : single
Unary minus.
const operator++() : single
Successor.
const operator--() : single
Predecessor.
not yet documented
operator++()
Increment operator.
operator--()
Decrement operator.
operator=(s : single)
Simple assignment operator.
operator+=(s : single)
Add-assign operator.
operator-=(s : single)
Subtract-assign operator.
operator*=(s : single)
Multiply-assign operator.
operator/=(s : single)
Divide-assign operator.