Diff of /inst/__engSingleFormInt__.m [f2210b] .. [ebeccb]  Maximize  Restore

  Switch to side-by-side view

--- a/inst/__engSingleFormInt__.m
+++ b/inst/__engSingleFormInt__.m
@@ -19,18 +19,18 @@
 ## Author: simone pernice
 ## Created: 2008-08-18
 
-function __engSingleFormInt__ (interval)
+function ret = __engSingleFormInt__ (interval)
   tol = intToTol100 (interval);
   val = intToVal (interval);
   coeff = 0;
-  while abs(val) < 1 && coeff > -5
+  while abs(val) < 1 && coeff > -8
     val *= 1000;
     coeff -= 1;
   endwhile
-  while abs(val) >= 1000 && coeff < 4
+  while abs(val) >= 1000 && coeff < 8
     val /= 1000;
     coeff += 1;
   endwhile
-  units = "fpnum KMGT";
-  disp(sprintf ("%g%c+-%g%%", val, units(coeff+6), tol));
+  units = "yzafpnum KMGTPEZY";
+  ret = sprintf ("%g%c+-%g%%", val, units(coeff+9), tol);
 endfunction

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks