ba237a9d91
Files correlati : Ricompilazione Demo : [ ] Commento : Aggiunti i sorgenti per Greenleaf Math Library (gfm.dll) git-svn-id: svn://10.65.10.50/trunk@10079 c028cbd2-c16b-5b4b-a496-9718f37d4682
48 lines
766 B
C
Executable File
48 lines
766 B
C
Executable File
/* int IsDecimalInt(pSrc);
|
|
*
|
|
* ARGUMENT
|
|
* DEC *pSrc;
|
|
*
|
|
* DESCRIPTION
|
|
* Determines whether or not a DEC represents an integer value
|
|
* or decimal value.
|
|
*
|
|
* SIDE EFFECTS
|
|
* None.
|
|
*
|
|
* RETURNS
|
|
* TRUE if pSrc has implied decimal of zero, otherwise FALSE.
|
|
*
|
|
* POSSIBLE ERROR CODES
|
|
*
|
|
* GM_NULLPOINTER
|
|
*
|
|
* AUTHOR
|
|
* Andy Anderson 12-Sep-87 1435
|
|
* Copyright (C) 1987-1990 Greenleaf Software Inc. All rights reserved.
|
|
*
|
|
* MODIFICATIONS
|
|
*
|
|
*
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include "gm.h"
|
|
#include "gmsystem.h"
|
|
|
|
int IsDecimalInt(pSrc)
|
|
DEC *pSrc;
|
|
{
|
|
DEC dtemp, *temp=&dtemp;
|
|
|
|
_MacStart(GM_DISINT);
|
|
if (!pSrc) {
|
|
_MacErr(GM_NULLPOINTER);
|
|
_MacRet(GM_NULLPOINTER);
|
|
}
|
|
|
|
(void) _TruncateDec80Bit(temp, pSrc, 0);
|
|
|
|
_MacRet(CompareDecimal(temp, pSrc)==0);
|
|
}
|