[Patch, libfortran] PR 52434/48878/38199 Improve floating point formatted writes

Janne Blomqvist blomqvist.janne@gmail.com
Fri Mar 9 10:01:00 GMT 2012


On Fri, Mar 9, 2012 at 00:40, Janne Blomqvist <blomqvist.janne@gmail.com> wrote:
> Note that GFortran previously did roundTiesToAway, whereas at least
> glibc snprintf() does roundTiesToEven, so some change in behavior is
> expected. Anyway, this is IMHO for the better, as it avoids biasing
> the magnitude upwards in some common cases. Also, roundTiesToAway is
> the default rounding mode for arithmetic.

Err, roundTiestToEven is the default, that is.

Also, the patch contains a bunch of commented out printf's for
debugging. I will obviously remove those before committing, so please
disregard those when reviewing. Thanks!


-- 
Janne Blomqvist



More information about the Fortran mailing list