diff options
author | V. Guruprasad <prasad@inspiredresearch.com> | 2020-04-10 14:43:11 -0400 |
---|---|---|
committer | V. Guruprasad <prasad@inspiredresearch.com> | 2020-04-10 15:15:32 -0400 |
commit | 78aa14bf87de1d313c5739861860deee81499c8d (patch) | |
tree | 5b1db647a6ee192277a78171d1c212751d8094a1 /src | |
parent | a5772064d26d8338c7af63025e3f6b7e0fe66c68 (diff) |
consistency in engineering format
Diffstat (limited to 'src')
-rw-r--r-- | src/format.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/format.c b/src/format.c index 2f18e2c..474ae89 100644 --- a/src/format.c +++ b/src/format.c @@ -602,7 +602,7 @@ int engformat(int fmt, int width, int lprecision, double val, char *buf, int buf if ((engabs >= 1e18) && (engabs < 1e21 )) engind=12; if ((engabs < 1e-18) || (engabs >= 1e21 )) { /* Revert to floating point */ - (void) sprintf(buf,"%*.*E", width, lprecision, val); + (void) sprintf(buf,"%*.*e", width, lprecision, val); } else { engexp = (double) (engind-6)*3; engmant = val/pow(10.0e0,engexp); |