freebsd-dev/usr.sbin/xntpd/lib/fptoms.c
1993-12-21 18:36:48 +00:00

24 lines
344 B
C

/* fptoms.c,v 3.1 1993/07/06 01:08:17 jbj Exp
* fptoms - return an asciized s_fp number in milliseconds
*/
#include "ntp_fp.h"
char *
fptoms(fpv, ndec)
s_fp fpv;
int ndec;
{
u_fp plusfp;
int neg;
if (fpv < 0) {
plusfp = (u_fp)(-fpv);
neg = 1;
} else {
plusfp = (u_fp)fpv;
neg = 0;
}
return dofptoa(plusfp, neg, ndec, 1);
}