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.py564 fracpart = m.group('frac') or ''
566 self._int = str(int(intpart+fracpart))
567 self._exp = exp - len(fracpart)
1067 fracpart = '.' + '0'*(-dotplace) + self._int
1070 fracpart = ''
1073 fracpart = '.' + self._int[dotplace:]
1081 return sign + intpart + fracpart + exp
3817 fracpart = '0'*(-dotplace) + self._int
3820 fracpart = ''
3823 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.c451 double fracpart; in float_richcompare() local
465 fracpart = modf(i, &intpart); in float_richcompare()
470 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.c2360 double fracpart; in accum() local
2376 fracpart = modf(dnum, &intpart); in accum()
2391 if (fracpart == 0.0) in accum()
2400 dnum *= fracpart; in accum()
2401 fracpart = modf(dnum, &intpart); in accum()
2411 *leftover += fracpart; in accum()