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()
564 fracpart = m.group('frac') or ''566 self._int = str(int(intpart+fracpart))567 self._exp = exp - len(fracpart)1067 fracpart = '.' + '0'*(-dotplace) + self._int1070 fracpart = ''1073 fracpart = '.' + self._int[dotplace:]1081 return sign + intpart + fracpart + exp3817 fracpart = '0'*(-dotplace) + self._int3820 fracpart = ''3823 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))
451 double fracpart; in float_richcompare() local465 fracpart = modf(i, &intpart); in float_richcompare()470 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()
2360 double fracpart; in accum() local2376 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()