Decimals
These
functions are used to perform decimal
arithmetic with NSDecimal type
structs. The Foundation class
NSDecimalNumber may also be used for decimal
arithmetic.
-
NSDecimalAdd NSCalculationErrorNSDecimalAdd(NSDecimal*result,constNSDecimal*leftOperand,constNSDecimal*rightOperand,NSRoundingModeroundingMode)-
NSDecimalCompact voidNSDecimalCompact(NSDecimal*number)-
NSDecimalCompare NSComparisonResultNSDecimalCompare(constNSDecimal*leftOperand,constNSDecimal*rightOperand)-
NSDecimalCopy voidNSDecimalCopy(NSDecimal*destination,constNSDecimal*source)-
NSDecimalDivide NSCalculationErrorNSDecimalDivide(NSDecimal*result,constNSDecimal*leftOperand,constNSDecimal*rightOperand,NSRoundingModeroundingMode)-
NSDecimalMultiply NSCalculationErrorNSDecimalMultiply(NSDecimal*result,constNSDecimal*leftOperand,constNSDecimal*rightOperand,NSRoundingModeroundingMode)-
NSDecimalMultiplyByPowerOf10 NSCalculationErrorNSDecimalMultiplyByPowerOf10(NSDecimal*result,constNSDecimal*number,shortpower,NSRoundingModeroundingMode)-
NSDecimalNormalize NSCalculationErrorNSDecimalNormalize(NSDecimal*number1,NSDecimal*number2,NSRoundingModeroundingMode)-
NSDecimalPower NSCalculationErrorNSDecimalPower(NSDecimal*result,constNSDecimal*number,unsignedpower,NSRoundingModeroundingMode)-
NSDecimalRound voidNSDecimalRound(NSDecimal*result,constNSDecimal*number,intscale,NSRoundingModeroundingMode)-
NSDecimalString NSString ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access