40 lines
595 B
C
40 lines
595 B
C
|
/* int DecimalPrecision(pSrc);
|
||
|
*
|
||
|
* ARGUMENT
|
||
|
* DEC *pSrc;
|
||
|
*
|
||
|
* DESCRIPTION
|
||
|
* Finds the number of digits past the decimal point of pSrc.
|
||
|
*
|
||
|
* SIDE EFFECTS
|
||
|
* None.
|
||
|
*
|
||
|
* RETURNS
|
||
|
* The number of digits past the decimal point, or GM_NULLPOINTER.
|
||
|
*
|
||
|
* POSSIBLE ERROR CODES
|
||
|
*
|
||
|
* GM_NULLPOINTER
|
||
|
*
|
||
|
* AUTHOR
|
||
|
* Jared Levy
|
||
|
* Copyright (C) 1987-1990 Greenleaf Software Inc. All rights reserved.
|
||
|
*
|
||
|
* MODIFICATIONS
|
||
|
*
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
#include <stdio.h>
|
||
|
#include "gm.h"
|
||
|
#include "gmsystem.h"
|
||
|
|
||
|
int DecimalPrecision(pSrc)
|
||
|
DEC *pSrc;
|
||
|
{
|
||
|
_MacStart(GM_DPREC);
|
||
|
_MacInVarI(pSrc)
|
||
|
|
||
|
_MacRet(pSrc->dc.id);
|
||
|
}
|