projects
/
dragonfly.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Initial import from FreeBSD RELENG_4:
[dragonfly.git]
/
contrib
/
ntp
/
libntp
/
fptoa.c
1
/*
2
* fptoa - return an asciized representation of an s_fp number
3
*/
4
#include "ntp_fp.h"
5
#include "ntp_stdlib.h"
6
7
char *
8
fptoa(
9
s_fp fpv,
10
int ndec
11
)
12
{
13
u_fp plusfp;
14
int neg;
15
16
if (fpv < 0) {
17
plusfp = (u_fp)(-fpv);
18
neg = 1;
19
} else {
20
plusfp = (u_fp)fpv;
21
neg = 0;
22
}
23
24
return dofptoa(plusfp, neg, ndec, 0);
25
}