1999-12-09 13:01:21 +00:00
|
|
|
/*
|
|
|
|
* mfptoa - Return an asciized representation of a signed long fp number
|
|
|
|
*/
|
|
|
|
#include "ntp_fp.h"
|
|
|
|
#include "ntp_stdlib.h"
|
|
|
|
|
|
|
|
char *
|
|
|
|
mfptoa(
|
|
|
|
u_long fpi,
|
|
|
|
u_long fpf,
|
2004-07-20 15:01:56 +00:00
|
|
|
short ndec
|
1999-12-09 13:01:21 +00:00
|
|
|
)
|
|
|
|
{
|
|
|
|
int isneg;
|
|
|
|
|
|
|
|
if (M_ISNEG(fpi, fpf)) {
|
|
|
|
isneg = 1;
|
|
|
|
M_NEG(fpi, fpf);
|
|
|
|
} else
|
|
|
|
isneg = 0;
|
|
|
|
|
|
|
|
return dolfptoa(fpi, fpf, isneg, ndec, 0);
|
|
|
|
}
|