You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The second output above is incorrect; it should be "0x1.2p+0". When
forced to round due to limited output precision, the rounding should be to
the nearest representable value, or, where equidistant between the nearest
two, to the one with the even least-significant digit. The tiebreaker
rule is not being respected here. Empirically, a nearest-or-toward-zero
rounding rule is being used, rather than nearest-or-even.
Activity
p5pRT commentedon Aug 10, 2016
From zefram@fysh.org
Created by zefram@fysh.org
$ perl -lwe 'printf "%a\n", 1.09375'
0x1.18p+0
$ perl -lwe 'printf "%.1a\n", 1.09375'
0x1.1p+0
The second output above is incorrect; it should be "0x1.2p+0". When
forced to round due to limited output precision, the rounding should be to
the nearest representable value, or, where equidistant between the nearest
two, to the one with the even least-significant digit. The tiebreaker
rule is not being respected here. Empirically, a nearest-or-toward-zero
rounding rule is being used, rather than nearest-or-even.
Perl Info
p5pRT commentedon Aug 23, 2016
From @jhi
Marking resolved until proven otherwise.
p5pRT commentedon Aug 23, 2016
The RT System itself - Status changed from 'new' to 'open'
p5pRT commentedon Aug 23, 2016
@jhi - Status changed from 'open' to 'resolved'