mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
some cleanups and clarifications to documentation just added, suggested by Alexander Malmberg
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@19817 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a943a78640
commit
3d41142bdf
10 changed files with 51 additions and 30 deletions
|
@ -111,7 +111,8 @@ typedef struct {
|
|||
#endif
|
||||
} NSDecimal;
|
||||
|
||||
/** Returns whether decimal represents an invalid number. */
|
||||
/** Returns whether decimal represents an invalid number (i.e., an "NaN" as
|
||||
might result from an overflow or a division by zero). */
|
||||
static inline BOOL
|
||||
NSDecimalIsNotANumber(const NSDecimal *decimal)
|
||||
{
|
||||
|
@ -144,7 +145,7 @@ GS_EXPORT void
|
|||
NSDecimalRound(NSDecimal *result, const NSDecimal *number, int scale, NSRoundingMode mode);
|
||||
|
||||
/**
|
||||
* Sets the exponents of n1 and n2 to equal one another, adjusting mantissas
|
||||
* Sets the exponents of n1 and n2 equal to one another, adjusting mantissas
|
||||
* as necessary to preserve values. This makes certain operations quicker.
|
||||
*/
|
||||
GS_EXPORT NSCalculationError
|
||||
|
@ -199,7 +200,7 @@ NSDecimalPower(NSDecimal *result, const NSDecimal *n, unsigned power, NSRounding
|
|||
* Multiplies n by 10^power and returns result to 38-digit precision. See the
|
||||
* [(NSDecimalNumberBehaviors)] protocol for a description of mode and the
|
||||
* return value. The result should be preallocated but can be the same as
|
||||
* n or power.
|
||||
* n.
|
||||
*/
|
||||
GS_EXPORT NSCalculationError
|
||||
NSDecimalMultiplyByPowerOf10(NSDecimal *result, const NSDecimal *n, short power, NSRoundingMode mode);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue