Home | History | Annotate | Download | only in Lib

Lines Matching refs:fracpart

560                 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:]
3824 return _format_number(self._sign, intpart, fracpart, exp, spec)
6348 def _format_number(is_negative, intpart, fracpart, exp, spec):
6353 fracpart: string of digits that must come after the point
6368 if fracpart or spec['alt']:
6369 fracpart = spec['decimal_point'] + fracpart
6373 fracpart += "{0}{1:+}".format(echar, exp)
6375 fracpart += '%'
6378 min_width = spec['minimumwidth'] - len(fracpart) - len(sign)
6383 return _format_align(sign, intpart+fracpart, spec)