blob: f686d413edba167413ee9e17f729744935af0a75 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* mfptoms.c,v 3.1 1993/07/06 01:08:31 jbj Exp
* mfptoms - Return an asciized signed LONG fp number in milliseconds
*/
#include "ntp_fp.h"
#include "ntp_stdlib.h"
char *
mfptoms(fpi, fpf, ndec)
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);
}
|