NetBSD/dist/ntp/libntp/mfptoa.c

26 lines
391 B
C
Raw Normal View History

/* $NetBSD: mfptoa.c,v 1.2 2003/12/04 16:23:37 drochner Exp $ */
2000-03-29 16:38:44 +04: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,
2003-12-04 19:05:14 +03:00
short ndec
2000-03-29 16:38:44 +04:00
)
{
int isneg;
if (M_ISNEG(fpi, fpf)) {
isneg = 1;
M_NEG(fpi, fpf);
} else
isneg = 0;
return dolfptoa(fpi, fpf, isneg, ndec, 0);
}