The Hyper Programming Language

Class ‘real’

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

Class

sealed class real : object

This class represents the widest native floating point type, at least 64 bits.

Constructors

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.

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+() : real

Unary plus.

const operator-() : real

Unary minus.

const operator++() : real

Successor.

const operator--() : real

Predecessor.

Binary Operators

not yet documented

Increment/decrement operators

operator++()

Increment operator.

operator--()

Decrement operator.

Assignment Operators

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.

See also


Valid HTML 4.01 Strict Valid CSS!