exponential2normal
This commit is contained in:
parent
c4bbf11303
commit
1619fd79c4
@ -1,5 +1,4 @@
|
|||||||
function g_num_exponential2normal {
|
function g_num_exponential2normal {
|
||||||
|
|
||||||
[ -z "$1" ] && return 1
|
[ -z "$1" ] && return 1
|
||||||
# if there is a exponential number (for example 9.881e-05) convert it to "normal" notation
|
# 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" =~ ^(-)?(\.)?[0-9]+(\.)?([0-9]+)?(e-[0-9]+)?$ ]]
|
||||||
|
Loading…
Reference in New Issue
Block a user