This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]