class Number

Represents an primitive Number value More...

Full nameKJS::Number
Definition#include <value.h>
InheritsKJS::Value [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Static Methods


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: dfaure on faure on Tue Apr 16 08:50:27 2002, using kdoc 2.0a53.