- Inherits from:
- Object
- Conforms to:
- DComparable, DDatable, DParsable, DTextable
- Declared in:
- DDouble.h
Object
|
+---DDouble
Class Description
The Double class implements a number of methods for storing and manipulating double numbers.
- Last modified:
- 27-Feb-2005 (DDouble.h)
Instance Variables
- private double _double
- Constructors
- - (DDouble *) init
- Initialise to number zero
- Returns:
- the object
- - (DDouble *) init :(double) number
- Initialise to a number
- Parameters:
- number - the number
- Returns:
- the object
- Member methods
- - (double) get
- Get the double
- Returns:
- the double number
- - (DDouble *) set :(double) number
- Set the double number
- Parameters:
- number - the double number
- Returns:
- the object
- Comparable protocol
- - (int) compare :(DDouble *) other
- Compare two double objects
- Parameters:
- other - the object to compare with
- Returns:
- the result of the comparison (-1,0,1)
- Textable protocol
- - (DText *) toText
- Return a text string with the double
- Returns:
- a (new) text string with the number
- Datable protocol
- - (DData *) toData
- Return a data string with the double
- Returns:
- a (new) data string
- Parsable protocol
- - (int) fromString :(char **) cstr
- Parse a string to set the double
- Parameters:
- cstr - the string to be parsed (moved to first non-parsable char)
- Returns:
- the result (0, ERANGE, ENODATA)
generated 25-Jul-2006 by ObjcDoc 3.0.0