NetBSD/dist/ntp/libntp/mfptoms.c
2000-03-29 12:38:44 +00:00

26 lines
390 B
C

/* $NetBSD: mfptoms.c,v 1.1.1.1 2000/03/29 12:38:50 simonb Exp $ */
/*
* mfptoms - Return an asciized signed long fp number in milliseconds
*/
#include "ntp_fp.h"
#include "ntp_stdlib.h"
char *
mfptoms(
u_long fpi,
u_long fpf,
int ndec
)
{
int isneg;
if (M_ISNEG(fpi, fpf)) {
isneg = 1;
M_NEG(fpi, fpf);
} else
isneg = 0;
return dolfptoa(fpi, fpf, isneg, ndec, 1);
}