Sync usage with man page.
[netbsd-mini2440.git] / dist / ntp / libntp / fptoa.c
blobc5e41f2483b27400799589093934d34a4310d9c1
1 /* $NetBSD$ */
3 /*
4 * fptoa - return an asciized representation of an s_fp number
5 */
6 #include "ntp_fp.h"
7 #include "ntp_stdlib.h"
9 char *
10 fptoa(
11 s_fp fpv,
12 short ndec
15 u_fp plusfp;
16 int neg;
18 if (fpv < 0) {
19 plusfp = (u_fp)(-fpv);
20 neg = 1;
21 } else {
22 plusfp = (u_fp)fpv;
23 neg = 0;
26 return dofptoa(plusfp, neg, ndec, 0);