changeset 18652:3647db1a37d7

NEWS entry for previous printf format changes
author John W. Eaton <jwe@octave.org>
date Wed, 16 Apr 2014 20:44:00 -0400
parents 491b0adfec95
children 7d0014bb9e4e
files NEWS
diffstat 1 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Tue Apr 15 14:12:56 2014 -0400
+++ b/NEWS	Wed Apr 16 20:44:00 2014 -0400
@@ -9,6 +9,21 @@
     has continuous 1st and 2nd derivatives while 'pchip' only has a continuous
     1st derivative.
 
+ ** Integer formats used in the printf family of functions now work for
+    64-bit integers and are more compatible with Matlab when printing
+    non-integer values.  Now instead of truncating, Octave will switch
+    the effective format to '%g' in the following circumstances:
+
+      * the value of an integer type (int8, uint32, etc.) value exceeds
+        the maximum for the format specifier.  For '%d', the limit is
+        intmax ('int64') and for '%u' it is intmax ('uint64').
+
+      * round(x) != x or the value is outside the range allowed by the
+        integer format specifier.
+
+    There is still one difference:  Matlab switches to '%e' and Octave
+    is currently switching to '%g'.
+
  ** Other new functions added in 4.2:
 
       dir_in_loadpath