Re: printf %g format
- Posted by Robert Craig <rds at RapidEuphoria.com> Nov 01, 2001
- 442 views
rforno writes: > Wouldn't be possible to modify the %g format so that it prints more than 4 > decimals in case they are not zero? You can use field-width and precision specifiers with %g, just as with %f, %s, etc. For example... atom x x = 1.12345678901234 printf(1, "%g", x) printf(1, "%15.12g", x) Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com

