summaryrefslogtreecommitdiffstats
path: root/src/format.c
diff options
context:
space:
mode:
authorV. Guruprasad <prasad@inspiredresearch.com>2020-04-10 11:58:57 -0400
committerV. Guruprasad <prasad@inspiredresearch.com>2020-04-10 12:18:36 -0400
commitef18e24adbe0f9304f3cd13edb0549ba1c5b40bb (patch)
tree065ca581bbd2d4941913f2a023e6f0866a4190d2 /src/format.c
parentdf4c2e0f9190833d5730e197c89cac42e3843564 (diff)
engineering format in UI
Diffstat (limited to 'src/format.c')
-rw-r--r--src/format.c2
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);