The Hyper Programming Language

Class ‘single’

This is the class reference of built-in type single.

Class

sealed class single : object

This class represents the IEEE 754 single precision floating point number (32-bit).

Constructors

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.

Procedures

none yet

Operators

Warning: this is preliminary syntax with the purpose of documenting the operators of this class. Nothing official yet!

Unary Operators

const operator+() : single

Unary plus.

const operator-() : single

Unary minus.

const operator++() : single

Successor.

const operator--() : single

Predecessor.

Binary Operators

not yet documented

Increment/decrement operators

operator++()

Increment operator.

operator--()

Decrement operator.

Assignment Operators

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.

See also


Valid HTML 4.01 Strict Valid CSS!