diff options
author | V. Guruprasad <prasad@inspiredresearch.com> | 2020-04-10 11:58:57 -0400 |
---|---|---|
committer | V. Guruprasad <prasad@inspiredresearch.com> | 2020-04-10 12:18:36 -0400 |
commit | ef18e24adbe0f9304f3cd13edb0549ba1c5b40bb (patch) | |
tree | 065ca581bbd2d4941913f2a023e6f0866a4190d2 /src/format.c | |
parent | df4c2e0f9190833d5730e197c89cac42e3843564 (diff) |
engineering format in UI
Diffstat (limited to 'src/format.c')
-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 a3f68ee..2f18e2c 100644 --- a/src/format.c +++ b/src/format.c @@ -580,7 +580,7 @@ int engformat(int fmt, int width, int lprecision, double val, char *buf, int buf if (fmt == REFMTFIX) (void) sprintf(buf,"%*.*f", width, lprecision, val); if (fmt == REFMTFLT) - (void) sprintf(buf,"%*.*E", width, lprecision, val); + (void) sprintf(buf,"%*.*e", width, lprecision, val); if (fmt == REFMTENG) { if (val == 0e0) { /* Hack to get zeroes to line up in engr fmt */ (void) sprintf((buf-1),"%*.*f ", width, lprecision, val); |