I-127 / mflab

Automatically exported from code.google.com/p/mflab
0 stars 0 forks source link

bug in writeNWT #17

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The format %.g might delete, sometimes, important decimal places when printing 
the input files for the solver NWT. For example with parameter DBDTHETA.

If DBDTHETA is 0.97 it gives 1.

>> fprintf(' %.g\n',0.97)
 1

Instead:

>> fprintf(' %g\n',0.97)
 0.97

There might be a better format, but I don't really know much about formatting.

Cheers,
Thomas

Original issue reported on code.google.com by tboo...@gmail.com on 15 Jul 2015 at 9:28