cds.test
Class Num

java.lang.Object
  extended bycds.test.Num

class Num
extends java.lang.Object


Field Summary
(package private)  double dval
           
(package private)  long lval
           
(package private)  int prec
           
 
Constructor Summary
Num()
          Constructor
 
Method Summary
 int parseNum(java.lang.String s)
          Parse a number
 int parseNum(java.lang.String s, int off)
          Parse a number
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dval

double dval

lval

long lval

prec

int prec
Constructor Detail

Num

public Num()
Constructor

Method Detail

parseNum

public int parseNum(java.lang.String s)
Parse a number

Parameters:
s - String containing the number
Returns:
the offset in the string where the parsing stopped

parseNum

public int parseNum(java.lang.String s,
                    int off)
Parse a number

Parameters:
s - String containing the number
off - offset where the parsing should begin
Returns:
the offset in the string where the parsing stopped