Sync usage with man page.
[netbsd-mini2440.git] / dist / ntp / libntp / fptoms.c
blob1febe3e00d02deaeafd5836f256217e9ba7638a4
1 /* $NetBSD$ */
3 /*
4 * fptoms - return an asciized s_fp number in milliseconds
5 */
6 #include "ntp_fp.h"
8 char *
9 fptoms(
10 s_fp fpv,
11 short ndec
14 u_fp plusfp;
15 int neg;
17 if (fpv < 0) {
18 plusfp = (u_fp)(-fpv);
19 neg = 1;
20 } else {
21 plusfp = (u_fp)fpv;
22 neg = 0;
25 return dofptoa(plusfp, neg, ndec, 1);