exponential2normal

This commit is contained in:
olli 2024-06-23 13:03:16 +02:00
parent c4bbf11303
commit 1619fd79c4

View File

@ -1,5 +1,4 @@
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]+)?$ ]]