From 26a11662d6d371a1d0c44de6bb028a1523ba4dc5 Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Sun, 6 Jul 2008 23:53:04 +0200 Subject: Add class MLKNumber, unify arithmetic interface. --- MLKFloat.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'MLKFloat.h') diff --git a/MLKFloat.h b/MLKFloat.h index bd8c3e4..6cb1db3 100644 --- a/MLKFloat.h +++ b/MLKFloat.h @@ -16,7 +16,7 @@ * along with this program. If not, see . */ -#import "MLKLispValue.h" +#import "MLKNumber.h" #import @@ -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 -- cgit v1.2.3