Proof that it's valid:
$ perl
printf "%.f", 3.
1415926535
* gettext-tools/src/format-perl.c: Clarify comment regarding the precision.
* gettext-tools/tests/format-perl-1: Add a test case with null precision.
a nonempty digit sequence starting with a nonzero digit,
- is optionally followed by '.' and a precision specification: '*' (reads
an argument) or '*m$' where m is a positive integer starting with a
- nonzero digit or a digit sequence,
+ nonzero digit or an optional nonempty digit sequence,
- is optionally followed by a size specifier, one of 'h' 'l' 'll' 'L' 'q'
'V' 'I32' 'I64' 'I',
- is finished by a specifier
"abc%y"
# Invalid: flags after width
"abc%*0g"
+# Valid: null precision
+"abc%.f"
# Invalid: twice precision
"abc%.4.2g"
# Valid: three arguments