@format_field.register(u'<STR_LIT:f>')<EOL>@format_field.register(u'<STR_LIT:F>')<EOL>def format_float_field(__, prec, number, locale):
format_ = u'<STR_LIT>'<EOL>if prec is None:<EOL><INDENT>format_ += u'<STR_LIT:#>' * NUMBER_DECIMAL_DIGITS<EOL><DEDENT>else:<EOL><INDENT>format_ += u'<STR_LIT:0>' * int(prec)<EOL><DEDENT>pattern = parse_pattern(format_)<EOL>return pattern.apply(number, locale)<EOL>
Formats a fixed-point field.