Package org.robovm.apple.foundation
Class NSDecimal
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.rt.bro.Struct<NSDecimal>
-
- org.robovm.apple.foundation.NSDecimal
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NSDecimal.NSDecimalPtr
-
Constructor Summary
Constructors Constructor Description NSDecimal()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NSCalculationError
add(NSDecimal result, NSDecimal leftOperand, NSDecimal rightOperand, NSRoundingMode roundingMode)
static void
compact(NSDecimal number)
static NSComparisonResult
compare(NSDecimal leftOperand, NSDecimal rightOperand)
static NSCalculationError
divide(NSDecimal result, NSDecimal leftOperand, NSDecimal rightOperand, NSRoundingMode roundingMode)
static NSCalculationError
multiply(NSDecimal result, NSDecimal leftOperand, NSDecimal rightOperand, NSRoundingMode roundingMode)
static NSCalculationError
multiplyByPowerOf10(NSDecimal result, NSDecimal number, short power, NSRoundingMode roundingMode)
static NSCalculationError
normalize(NSDecimal number1, NSDecimal number2, NSRoundingMode roundingMode)
static NSCalculationError
power(NSDecimal result, NSDecimal number, long power, NSRoundingMode roundingMode)
static void
round(NSDecimal result, NSDecimal number, long scale, NSRoundingMode roundingMode)
static NSCalculationError
subtract(NSDecimal result, NSDecimal leftOperand, NSDecimal rightOperand, NSRoundingMode roundingMode)
java.lang.String
toString()
protected static java.lang.String
toString(NSDecimal dcm, NSObject locale)
java.lang.String
toString(NSLocale locale)
-
Methods inherited from class org.robovm.rt.bro.Struct
_sizeOf, allocate, allocate, as, clear, clear, copy, copy, copyWithMalloc, copyWithMalloc, free, iterator, iterator, malloc, malloc, next, next, offsetOf, previous, previous, sizeOf, sizeOf, toArray, toList, toStruct, update, update, update, wrap
-
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toString
public java.lang.String toString(NSLocale locale)
-
compact
public static void compact(NSDecimal number)
-
compare
public static NSComparisonResult compare(NSDecimal leftOperand, NSDecimal rightOperand)
-
round
public static void round(NSDecimal result, NSDecimal number, long scale, NSRoundingMode roundingMode)
-
normalize
public static NSCalculationError normalize(NSDecimal number1, NSDecimal number2, NSRoundingMode roundingMode)
-
add
public static NSCalculationError add(NSDecimal result, NSDecimal leftOperand, NSDecimal rightOperand, NSRoundingMode roundingMode)
-
subtract
public static NSCalculationError subtract(NSDecimal result, NSDecimal leftOperand, NSDecimal rightOperand, NSRoundingMode roundingMode)
-
multiply
public static NSCalculationError multiply(NSDecimal result, NSDecimal leftOperand, NSDecimal rightOperand, NSRoundingMode roundingMode)
-
divide
public static NSCalculationError divide(NSDecimal result, NSDecimal leftOperand, NSDecimal rightOperand, NSRoundingMode roundingMode)
-
power
public static NSCalculationError power(NSDecimal result, NSDecimal number, long power, NSRoundingMode roundingMode)
-
multiplyByPowerOf10
public static NSCalculationError multiplyByPowerOf10(NSDecimal result, NSDecimal number, short power, NSRoundingMode roundingMode)
-
-