The Hyper Programming Language

Class ‘double’

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

Class

sealed class double : object

This class represents the IEEE 754 double precision floating point number (64-bit).

Constructors

procedure new()

Default constructor. Creates a double with value 0.

procedure new(d : double)

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.

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

Unary plus.

const operator-() : double

Unary minus.

const operator++() : double

Successor.

const operator--() : double

Predecessor.

Binary Operators

not yet documented

Increment/decrement operators

operator++()

Increment operator.

operator--()

Decrement operator.

Assignment Operators

operator=(d : double)

Simple assignment operator.

operator+=(d : double)

Add-assign operator.

operator-=(d : double)

Subtract-assign operator.

operator*=(d : double)

Multiply-assign operator.

operator/=(d : double)

Divide-assign operator.

See also


Valid HTML 4.01 Strict Valid CSS!