diff options
author | Matthias Benkard <mulk@minimulk.mst-plus> | 2008-07-06 23:53:04 +0200 |
---|---|---|
committer | Matthias Benkard <mulk@minimulk.mst-plus> | 2008-07-06 23:53:04 +0200 |
commit | 26a11662d6d371a1d0c44de6bb028a1523ba4dc5 (patch) | |
tree | 9532f796a01ba5b3000d3e5bd6062c59f2a934b6 /MLKFloat.h | |
parent | bb79a71e7aa85536d3d60d50913d5fc39c4ac07b (diff) |
Add class MLKNumber, unify arithmetic interface.
Diffstat (limited to 'MLKFloat.h')
-rw-r--r-- | MLKFloat.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -16,7 +16,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#import "MLKLispValue.h" +#import "MLKNumber.h" #import <Foundation/NSString.h> @@ -26,7 +26,7 @@ // instances are of one of its subclasses (currently MLKSingleFloat und // MLKDoubleFloat; an arbitrary-precision, GMP-backed type is planned // for the future). -@interface MLKFloat : MLKLispValue +@interface MLKFloat : MLKNumber +(MLKFloat *) floatWithExponentMarker:(unichar)exponentMarker integerPart:(NSString *)intPart negative:(BOOL)negative @@ -38,10 +38,10 @@ -(float) floatValue; -(double) doubleValue; --(MLKFloat *) add:(MLKFloat *)arg; --(MLKFloat *) subtract:(MLKFloat *)arg; --(MLKFloat *) multiplyWith:(MLKFloat *)arg; --(MLKFloat *) divideBy:(MLKFloat *)arg; +-(MLKNumber *) add:(MLKNumber *)arg; +-(MLKNumber *) subtract:(MLKNumber *)arg; +-(MLKNumber *) multiplyWith:(MLKNumber *)arg; +-(MLKNumber *) divideBy:(MLKNumber *)arg; -(NSString *) description; @end |