[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
'round',
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51515>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #51515] sprintf not rounding correctly, Luis Mendo, 2017/07/20
- [Octave-bug-tracker] [bug #51515] sprintf not rounding correctly, Andreas Weber, 2017/07/20
- [Octave-bug-tracker] [bug #51515] sprintf not rounding correctly,
Luis Mendo <=
- [Octave-bug-tracker] [bug #51515] sprintf not rounding correctly, Rik, 2017/07/20
- [Octave-bug-tracker] [bug #51515] sprintf not rounding as Matlab does, Rik, 2017/07/20
- [Octave-bug-tracker] [bug #51515] sprintf not rounding as Matlab does, Luis Mendo, 2017/07/20
- [Octave-bug-tracker] [bug #51515] sprintf not rounding as Matlab does, Rik, 2017/07/20
- [Octave-bug-tracker] [bug #51515] sprintf not rounding as Matlab does, Pantxo Diribarne, 2017/07/21
- [Octave-bug-tracker] [bug #51515] sprintf not rounding as Matlab does, Rik, 2017/07/21