123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- #import <Foundation/Foundation.h>
- NS_ASSUME_NONNULL_BEGIN
- @interface RLMDecimal128 : NSObject
- - (instancetype)init;
- - (instancetype)initWithValue:(id)value;
- - (instancetype)initWithNumber:(NSNumber *)number;
- - (nullable instancetype)initWithString:(NSString *)string error:(NSError **)error;
- + (instancetype)decimalWithNumber:(NSNumber *)number;
- @property (class, readonly, copy) RLMDecimal128 *minimumDecimalNumber NS_REFINED_FOR_SWIFT;
- @property (class, readonly, copy) RLMDecimal128 *maximumDecimalNumber NS_REFINED_FOR_SWIFT;
- @property (nonatomic, readonly) double doubleValue;
- @property (nonatomic, readonly) NSDecimal decimalValue;
- @property (nonatomic, readonly) NSString *stringValue;
- @property (nonatomic, readonly) BOOL isNaN;
- @property (nonatomic, readonly) RLMDecimal128 *magnitude NS_REFINED_FOR_SWIFT;
- - (void)negate;
- - (RLMDecimal128 *)decimalNumberByAdding:(RLMDecimal128 *)decimalNumber;
- - (RLMDecimal128 *)decimalNumberByDividingBy:(RLMDecimal128 *)decimalNumber;
- - (RLMDecimal128 *)decimalNumberBySubtracting:(RLMDecimal128 *)decimalNumber;
- - (RLMDecimal128 *)decimalNumberByMultiplyingBy:(RLMDecimal128 *)decimalNumber;
- - (BOOL)isGreaterThan:(nullable RLMDecimal128 *)decimalNumber;
- - (BOOL)isGreaterThanOrEqualTo:(nullable RLMDecimal128 *)decimalNumber;
- - (BOOL)isLessThan:(nullable RLMDecimal128 *)decimalNumber;
- - (BOOL)isLessThanOrEqualTo:(nullable RLMDecimal128 *)decimalNumber;
- @end
- NS_ASSUME_NONNULL_END
|