\section{KJS::Number Class Reference}
\label{classKJS_1_1Number}\index{KJS::Number@{KJS::Number}}
Represents an primitive {\bf Number}{\rm (p.\,\pageref{classKJS_1_1Number})} value.  


{\tt \#include $<$value.h$>$}

Inheritance diagram for KJS::Number:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=55pt]{classKJS_1_1Number__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KJS::Number:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=59pt]{classKJS_1_1Number__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Number} (int i)\label{classKJS_1_1Number_a0}

\item 
{\bf Number} (unsigned int u)\label{classKJS_1_1Number_a1}

\item 
{\bf Number} (double d=0.0)\label{classKJS_1_1Number_a2}

\item 
{\bf Number} (long int l)\label{classKJS_1_1Number_a3}

\item 
{\bf Number} (long unsigned int l)\label{classKJS_1_1Number_a4}

\item 
{\bf Number} (const  {\bf Number} \&v)\label{classKJS_1_1Number_a5}

\item 
{\bf Number} \& {\bf operator=} (const  {\bf Number} \&v)\label{classKJS_1_1Number_a7}

\item 
double {\bf value} () const \label{classKJS_1_1Number_a8}

\item 
int {\bf int\-Value} () const \label{classKJS_1_1Number_a9}

\item 
bool {\bf is\-Na\-N} () const \label{classKJS_1_1Number_a10}

\item 
bool {\bf is\-Inf} () const \label{classKJS_1_1Number_a11}

\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Number} {\bf dynamic\-Cast} (const  {\bf Value} \&v)
\begin{CompactList}\small\item\em Converts a {\bf Value}{\rm (p.\,\pageref{classKJS_1_1Value})} into an {\bf Number}{\rm (p.\,\pageref{classKJS_1_1Number})}. \item\end{CompactList}\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf Number\-Imp}\label{classKJS_1_1Number_n0}

\end{CompactItemize}


\subsection{Detailed Description}
Represents an primitive {\bf Number}{\rm (p.\,\pageref{classKJS_1_1Number})} value. 



Definition at line 396 of file value.h.

\subsection{Member Function Documentation}
\index{KJS::Number@{KJS::Number}!dynamicCast@{dynamicCast}}
\index{dynamicCast@{dynamicCast}!KJS::Number@{KJS::Number}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Number} Number::dynamic\-Cast (const {\bf Value} \& {\em v})\hspace{0.3cm}{\tt  [static]}}\label{classKJS_1_1Number_e0}


Converts a {\bf Value}{\rm (p.\,\pageref{classKJS_1_1Value})} into an {\bf Number}{\rm (p.\,\pageref{classKJS_1_1Number})}. 

If the value's type is not Number\-Type, 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 Number\-Type, you should check the {\bf is\-Null}{\rm (p.\,\pageref{classKJS_1_1Value_a6})}() methods afterwards before calling any methods on the returned value.

\begin{Desc}
\item[Returns:]The value converted to a {\bf Number}{\rm (p.\,\pageref{classKJS_1_1Number})} \end{Desc}


Definition at line 485 of file value.cpp.

References KJS::Value::imp(), KJS::Value::is\-Null(), and KJS::Value::type().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
value.h\item 
value.cpp\end{CompactItemize}
