printf %a mishandles negative pseudo-precision #15503
Comments
From zefram@fysh.orgCreated by zefram@fysh.org$ perl -lwe 'printf "%.*a\n", -1, 1.03125' The above output is incorrect: it should be "0x1.08p+0". %a is $ perl -lwe 'printf "%a\n", 1.03125' The decimal %e, for which precision defaults to 6, handles a negative $ perl -lwe 'printf "%.*e\n", 1, 1.03125' Perl Info
|
From @jhiMarking resolved until proven otherwise. |
The RT System itself - Status changed from 'new' to 'open' |
@jhi - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#128889 (status was 'resolved')
Searchable as RT128889$
The text was updated successfully, but these errors were encountered: