Dear list,
On Thu, 31 Oct 2013 14:19:29 + (UTC)
Dima Pasechnik wrote:
> On 2013-10-30, Erik Massop wrote:
> > This seems to be the bug 'scanf %f doesn't parse "0e+0" correctly' in
> > glibc [1].
>
> is it really a bug? I am not sure. Normally one should
> have used %g format to read in a f
On 2013-10-30, Erik Massop wrote:
> Dear list,
>
>
> This seems to be the bug 'scanf %f doesn't parse "0e+0" correctly' in
> glibc [1].
is it really a bug? I am not sure. Normally one should
have used %g format to read in a float in its "natural"
format. There mustn't be a '+' in a fixed-point no
Oh dear, sounds like everyone has an opinion, not necessarily well informed
though.
Here are some facts/opinions.
1. If speed is an issue, you should use hardware floats.
2. On some (most?) processors, changing the rounding mode is more expensive
than doing arithmetic. Sometimes MUCH more expensi