diff options
Diffstat (limited to 'MLKInteger.h')
-rw-r--r-- | MLKInteger.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/MLKInteger.h b/MLKInteger.h index d0decb6..25eea87 100644 --- a/MLKInteger.h +++ b/MLKInteger.h @@ -43,12 +43,26 @@ +(MLKInteger *) integerWithInt:(int)intValue; -(int) intValue; +-(double) doubleValue; -(MLKNumber *) add:(MLKNumber *)arg; -(MLKNumber *) subtract:(MLKNumber *)arg; -(MLKNumber *) multiplyWith:(MLKNumber *)arg; -(MLKNumber *) divideBy:(MLKNumber *)arg; +-(NSComparisonResult) compare:(MLKInteger *)arg; +-(BOOL) isEqual:(id)arg; + +-(BOOL) evenp; +-(BOOL) oddp; + +-(MLKInteger *) mod:(MLKInteger *)arg; +-(MLKInteger *) exactlyDivideBy:(MLKInteger *)arg; +-(MLKInteger *) isqrt; +-(MLKInteger *) pow:(MLKInteger *)exponent; +-(MLKInteger *) gcd:(MLKInteger *)arg; +-(MLKInteger *) lcm:(MLKInteger *)arg; + -(NSString *) description; -(NSString *) descriptionWithBase:(int)base; -(NSString *) descriptionForLisp; |