1994-09-29 23:04:24 +00:00
|
|
|
/*
|
|
|
|
* mfptoa - Return an asciized representation of a signed long fp number
|
1993-12-21 18:36:48 +00:00
|
|
|
*/
|
|
|
|
#include "ntp_fp.h"
|
|
|
|
#include "ntp_stdlib.h"
|
|
|
|
|
|
|
|
char *
|
|
|
|
mfptoa(fpi, fpf, ndec)
|
1994-09-29 23:04:24 +00:00
|
|
|
u_long fpi;
|
|
|
|
u_long fpf;
|
1993-12-21 18:36:48 +00:00
|
|
|
int ndec;
|
|
|
|
{
|
|
|
|
int isneg;
|
|
|
|
|
|
|
|
if (M_ISNEG(fpi, fpf)) {
|
|
|
|
isneg = 1;
|
|
|
|
M_NEG(fpi, fpf);
|
|
|
|
} else
|
|
|
|
isneg = 0;
|
|
|
|
|
|
|
|
return dolfptoa(fpi, fpf, isneg, ndec, 0);
|
|
|
|
}
|