Home
last modified time | relevance | path

Searched refs:fracpart (Results 1 – 8 of 8) sorted by relevance

/external/openssh/openbsd-compat/
Dbsd-snprintf.c717 double fracpart; in fmtfp() local
762 fracpart = ROUND((POW10(max)) * (ufvalue - intpart)); in fmtfp()
764 if (fracpart >= POW10(max)) { in fmtfp()
766 fracpart -= POW10(max); in fmtfp()
783 if (fracpart) in fmtfp()
786 temp = fracpart*0.1; in fmtfp()
787 my_modf(temp, &fracpart); in fmtfp()
788 idx = (int) ((temp -fracpart +0.05)* 10.0); in fmtfp()
793 } while(fracpart && (fplace < 311)); in fmtfp()
/external/python/cpython3/Lib/
D_pydecimal.py560 fracpart = m.group('frac') or ''
562 self._int = str(int(intpart+fracpart))
563 self._exp = exp - len(fracpart)
1063 fracpart = '.' + '0'*(-dotplace) + self._int
1066 fracpart = ''
1069 fracpart = '.' + self._int[dotplace:]
1077 return sign + intpart + fracpart + exp
3813 fracpart = '0'*(-dotplace) + self._int
3816 fracpart = ''
3819 fracpart = self._int[dotplace:]
[all …]
/external/python/cpython2/Lib/
Ddecimal.py556 fracpart = m.group('frac') or ''
558 self._int = str(int(intpart+fracpart))
559 self._exp = exp - len(fracpart)
1034 fracpart = '.' + '0'*(-dotplace) + self._int
1037 fracpart = ''
1040 fracpart = '.' + self._int[dotplace:]
1048 return sign + intpart + fracpart + exp
3711 fracpart = '0'*(-dotplace) + self._int
3714 fracpart = ''
3717 fracpart = self._int[dotplace:]
[all …]
/external/python/cpython3/Modules/_decimal/tests/
Dranddec.py78 fracpart = digits(fraclen)
79 return ''.join((intpart, '.', fracpart))
/external/python/cpython3/Objects/
Dfloatobject.c441 double fracpart; in float_richcompare() local
455 fracpart = modf(i, &intpart); in float_richcompare()
460 if (fracpart != 0.0) { in float_richcompare()
/external/python/cpython2/Objects/
Dfloatobject.c535 double fracpart; in float_richcompare() local
550 fracpart = modf(i, &intpart); in float_richcompare()
555 if (fracpart != 0.0) { in float_richcompare()
/external/python/cpython2/Modules/
Ddatetimemodule.c1868 double fracpart; in accum() local
1884 fracpart = modf(dnum, &intpart); in accum()
1899 if (fracpart == 0.0) in accum()
1911 dnum *= fracpart; in accum()
1912 fracpart = modf(dnum, &intpart); in accum()
1922 *leftover += fracpart; in accum()
/external/python/cpython3/Modules/
D_datetimemodule.c2342 double fracpart; in accum() local
2358 fracpart = modf(dnum, &intpart); in accum()
2373 if (fracpart == 0.0) in accum()
2382 dnum *= fracpart; in accum()
2383 fracpart = modf(dnum, &intpart); in accum()
2393 *leftover += fracpart; in accum()