[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #51515] sprintf not rounding correctly

From: Luis Mendo
Subject: [Octave-bug-tracker] [bug #51515] sprintf not rounding correctly
Date: Thu, 20 Jul 2017 05:37:04 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36

Follow-up Comment #2, bug #51515 (project octave):

Thanks. I failed to notice that it's just banker's rounding. Still, it's
inconsistent with Matlab and with 'round'; but I'm not sure that qualifies as
a "bug"

As for Matlab's 'sprintf' or 'fprintf', I have no idea, as they are built-in
functions. They round .5 away from zero, probably for consistence with


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]