Searched refs:fracpart (Results 1 – 8 of 8) sorted by relevance
717 double fracpart; in fmtfp() local762 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()
560 fracpart = m.group('frac') or ''562 self._int = str(int(intpart+fracpart))563 self._exp = exp - len(fracpart)1063 fracpart = '.' + '0'*(-dotplace) + self._int1066 fracpart = ''1069 fracpart = '.' + self._int[dotplace:]1077 return sign + intpart + fracpart + exp3813 fracpart = '0'*(-dotplace) + self._int3816 fracpart = ''3819 fracpart = self._int[dotplace:][all …]
556 fracpart = m.group('frac') or ''558 self._int = str(int(intpart+fracpart))559 self._exp = exp - len(fracpart)1034 fracpart = '.' + '0'*(-dotplace) + self._int1037 fracpart = ''1040 fracpart = '.' + self._int[dotplace:]1048 return sign + intpart + fracpart + exp3711 fracpart = '0'*(-dotplace) + self._int3714 fracpart = ''3717 fracpart = self._int[dotplace:][all …]
78 fracpart = digits(fraclen)79 return ''.join((intpart, '.', fracpart))
441 double fracpart; in float_richcompare() local455 fracpart = modf(i, &intpart); in float_richcompare()460 if (fracpart != 0.0) { in float_richcompare()
535 double fracpart; in float_richcompare() local550 fracpart = modf(i, &intpart); in float_richcompare()555 if (fracpart != 0.0) { in float_richcompare()
1868 double fracpart; in accum() local1884 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()
2342 double fracpart; in accum() local2358 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()