Package org.robovm.apple.foundation
Class NSDecimal
public class NSDecimal extends Struct<NSDecimal>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNSDecimal.NSDecimalPtrNested classes/interfaces inherited from class org.robovm.rt.bro.Struct
Struct.Marshaler -
Constructor Summary
Constructors Constructor Description NSDecimal() -
Method Summary
Modifier and Type Method Description static NSCalculationErroradd(NSDecimal result, NSDecimal leftOperand, NSDecimal rightOperand, NSRoundingMode roundingMode)static voidcompact(NSDecimal number)static NSComparisonResultcompare(NSDecimal leftOperand, NSDecimal rightOperand)static NSCalculationErrordivide(NSDecimal result, NSDecimal leftOperand, NSDecimal rightOperand, NSRoundingMode roundingMode)static NSCalculationErrormultiply(NSDecimal result, NSDecimal leftOperand, NSDecimal rightOperand, NSRoundingMode roundingMode)static NSCalculationErrormultiplyByPowerOf10(NSDecimal result, NSDecimal number, short power, NSRoundingMode roundingMode)static NSCalculationErrornormalize(NSDecimal number1, NSDecimal number2, NSRoundingMode roundingMode)static NSCalculationErrorpower(NSDecimal result, NSDecimal number, long power, NSRoundingMode roundingMode)static voidround(NSDecimal result, NSDecimal number, long scale, NSRoundingMode roundingMode)static NSCalculationErrorsubtract(NSDecimal result, NSDecimal leftOperand, NSDecimal rightOperand, NSRoundingMode roundingMode)StringtoString()protected static StringtoString(NSDecimal dcm, NSObject locale)StringtoString(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, wrapMethods inherited from class org.robovm.rt.bro.NativeObject
equals, getHandle, hashCode, setHandle
-
Constructor Details
-
NSDecimal
public NSDecimal()
-
-
Method Details
-
toString
-
toString
-
compact
-
compare
-
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) -
toString
-