Searched refs:fracpart (Results 1 - 3 of 3) sorted by relevance
/freebsd-9.3-release/crypto/openssh/openbsd-compat/ |
H A D | bsd-snprintf.c | 729 double fracpart; local 774 fracpart = ROUND((POW10(max)) * (ufvalue - intpart)); 776 if (fracpart >= POW10(max)) { 778 fracpart -= POW10(max); 795 if (fracpart) 798 temp = fracpart*0.1; 799 my_modf(temp, &fracpart); 800 idx = (int) ((temp -fracpart +0.05)* 10.0); 801 /* idx = (int) ((((temp/10) -fracpart) +0.05) *10); */ 802 /* printf ("%lf, %lf, %ld\n", temp, fracpart, id [all...] |
/freebsd-9.3-release/crypto/openssl/crypto/bio/ |
H A D | b_print.c | 622 long fracpart; local 649 fracpart = roundv(pow_10(max) * (ufvalue - intpart)); 651 if (fracpart >= max10) { 653 fracpart -= max10; 669 (caps ? "0123456789ABCDEF" : "0123456789abcdef")[fracpart % 10]; 670 fracpart = (fracpart / 10);
|
/freebsd-9.3-release/contrib/ntp/libntp/ |
H A D | snprintf.c | 1097 UINTMAX_T fracpart; local 1217 if ((fracpart = myround(mask * (ufvalue - intpart))) >= mask) { 1225 fracpart = 0; 1290 if (fracpart != 0) /* convert() would return 1 if fracpart == 0. */ 1291 fpos = convert(fracpart, fconvert, sizeof(fconvert), 10, 0);
|
Completed in 108 milliseconds