class Number

# class Number | Represents an primitive Number value More...
Full name | `KJS::Number`
Definition | `#include <value.h>`
Inherits | KJS::Value [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- Number (int i)
- Number (unsigned int u)
- Number (double d = 0.0)
- Number (long int l)
- Number (long unsigned int l)
- Number (const Number &v)
- virtual ~Number ()
- Number& operator= (const Number &v)
- double value () const
- int intValue () const
- bool isNaN () const
- bool isInf () const

#### Public Static Methods

- static Number dynamicCast (const Value &v)

## Detailed Description

Represents an primitive Number value

Number (int i) | ### Number

Number (unsigned int u) | ### Number

Number (double d = 0.0) | ### Number

Number (long int l) | ### Number

Number (long unsigned int l) | ### Number

Number (const Number &v) | ### Number

~Number () | ### ~Number

[virtual]

Number& operator= (const Number &v) | ### operator=

Reimplemented from Value.

double value () | ### value

[const]

int intValue () | ### intValue

[const]

bool isNaN () | ### isNaN

[const]

bool isInf () | ### isInf

[const]

Number dynamicCast (const Value &v) | ### dynamicCast

[static]

Converts a Value into an Number. If the value's type is not NumberType, a null object will be returned (i.e. one with it's internal pointer set to 0). If you do not know for sure whether the value is of type NumberType, you should check the isNull() methods afterwards before calling any methods on the returned value.

Returns: The value converted to a Number

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:37:28 2003, using kdoc 2.0a54.