From e1dbc5b9d107c268f37c675814a55fda6ce034d4 Mon Sep 17 00:00:00 2001 From: olli <> Date: Sun, 23 Jun 2024 15:02:43 +0200 Subject: [PATCH] exponential2normal --- gaboshlib/g_num_exponential2normal.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gaboshlib/g_num_exponential2normal.sh b/gaboshlib/g_num_exponential2normal.sh index 5092a3a..36e6fc8 100644 --- a/gaboshlib/g_num_exponential2normal.sh +++ b/gaboshlib/g_num_exponential2normal.sh @@ -2,7 +2,7 @@ function g_num_exponential2normal { [ -z "$1" ] && return 1 # if there is a exponential number (for example 9.881e-05) convert it to "normal" notation - if [[ "$1" =~ ^(-)?(\.)?[0-9]+(\.)?([0-9]+)?(e-[0-9]+)?$ ]] + if [[ "$1" =~ e-[0-9] ]] then # convert printf -v f_g_num_exponential2normal_result -- "%.12f" "$1"