- Adopted by:
- DBigDouble, DBigFraction, DBigInt, DComplex, DFixedPoint, DFraction
- Declared in:
- DSimpleArithmetic.h
Protocol Description
The DSimpleArithmetic protocol specifies methods for classes that can perform
simple arithmetic: addition, subtraction, multiplication and division.
- Last modified:
- 19-Jul-2008 (DSimpleArithmetic.h)
Method Index
- - (id <DSimpleArithmetic>) add :(id <DSimpleArithmetic>) other
- Add with another object
- Parameters:
- other - the other object
- Returns:
- the object
- - (id <DSimpleArithmetic>) add :(id <DSimpleArithmetic>) src1 :(id <DSimpleArithmetic>) src2
- Add two object and store the result in this object
- Parameters:
- src1 - the first object
src2 - the second object
- Returns:
- the object
- - (id <DSimpleArithmetic>) div :(id <DSimpleArithmetic>) other
- Divide with another object
- Parameters:
- other - the divider object
- Returns:
- the object
- - (id <DSimpleArithmetic>) div :(id <DSimpleArithmetic>) src1 :(id <DSimpleArithmetic>) src2
- Divide two object and store the result in this object
- Parameters:
- src1 - the number object
src2 - the divider object
- Returns:
- the object
- - (id <DSimpleArithmetic>) mul :(id <DSimpleArithmetic>) other
- Multiply with another object
- Parameters:
- other - the other object
- Returns:
- the object
- - (id <DSimpleArithmetic>) mul :(id <DSimpleArithmetic>) src1 :(id <DSimpleArithmetic>) src2
- Multiply two objects and store the result in this object
- Parameters:
- src1 - the first object
src2 - the second object
- Returns:
- the object
- - (id <DSimpleArithmetic>) sub :(id <DSimpleArithmetic>) other
- Subract with another object
- Parameters:
- other - the other object
- Returns:
- the object
- - (id <DSimpleArithmetic>) sub :(id <DSimpleArithmetic>) src1 :(id <DSimpleArithmetic>) src2
- Subract two objects and store the result in this object
- Parameters:
- src1 - the first object
src2 - the second object
- Returns:
- the object
generated 06-Sep-2008 by ObjcDoc 3.0.0