FACT++  1.0
void palDjcal ( int  ndp,
double  djm,
int  iymdf[4],
int *  j 
)

Definition at line 80 of file palDjcal.c.

References DNINT, eraJd2cal(), and PAL__MJD0.

Referenced by t_djcal().

80  {
81  double frac = 0.0;
82  double nfd;
83 
84  *j = eraJd2cal( PAL__MJD0, djm, &(iymdf[0]),
85  &(iymdf[1]), &(iymdf[2]),
86  &frac);
87 
88  /* Convert ndp to a power of 10 */
89  nfd = pow( 10., (double)ndp );
90 
91  /* Multiply the fraction */
92  frac *= nfd;
93 
94  /* and now we want to round to the nearest integer */
95  iymdf[3] = (int)DNINT(frac);
96 
97 }
int eraJd2cal(double dj1, double dj2, int *iy, int *im, int *id, double *fd)
Definition: jd2cal.c:3
#define DNINT(A)
Definition: palmac.h:123
static const double PAL__MJD0
Definition: palmac.h:96

+ Here is the call graph for this function:

+ Here is the caller graph for this function: