.TH "KJS::Number" 3 "28 Jan 2004" "kjs Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KJS::Number \- Represents an primitive \fBNumber\fP value.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <value.h>\fP
.PP
Inherits \fBKJS::Value\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBNumber\fP (int i)"
.br
.ti -1c
.RI "\fBNumber\fP (unsigned int u)"
.br
.ti -1c
.RI "\fBNumber\fP (double d=0.0)"
.br
.ti -1c
.RI "\fBNumber\fP (long int l)"
.br
.ti -1c
.RI "\fBNumber\fP (long unsigned int l)"
.br
.ti -1c
.RI "\fBNumber\fP (const  \fBNumber\fP &v)"
.br
.ti -1c
.RI "\fBNumber\fP & \fBoperator=\fP (const  \fBNumber\fP &v)"
.br
.ti -1c
.RI "double \fBvalue\fP () const "
.br
.ti -1c
.RI "int \fBintValue\fP () const "
.br
.ti -1c
.RI "bool \fBisNaN\fP () const "
.br
.ti -1c
.RI "bool \fBisInf\fP () const "
.br
.in -1c
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "\fBNumber\fP \fBdynamicCast\fP (const  \fBValue\fP &v)"
.br
.RI "\fIConverts a \fBValue\fP into an \fBNumber\fP. \fP"
.in -1c
.SS "Friends"

.in +1c
.ti -1c
.RI "class \fBNumberImp\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
Represents an primitive \fBNumber\fP value. Definition at line 396 of file value.h.
.SH "Member Function Documentation"
.PP 
.SS "\fBNumber\fP Number::dynamicCast (const \fBValue\fP & v)\fC [static]\fP"
.PP
Converts a \fBValue\fP into an \fBNumber\fP. 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 \fBisNull\fP() methods afterwards before calling any methods on the returned value.
.PP
\fBReturns:\fP
.RS 4
The value converted to a \fBNumber\fP 
.RE
.PP
Definition at line 485 of file value.cpp.
.PP
References KJS::Value::imp(), KJS::Value::isNull(), and KJS::Value::type().

.SH "Author"
.PP 
Generated automatically by Doxygen for kjs Library from the source code.
