Update default.inc

This commit is contained in:
2023-11-29 22:11:49 -06:00
parent 5b497da656
commit 76e7680e08

View File

@@ -284,6 +284,13 @@ function arr_count() {
declare -n r=$1
echo ${#r[@]}
}
IDS_NUMBER_FORMAT(){
VAL=${1}
DEC=${2}
[ "${DEC}" == "" ] && DEC=2
[[ "${VAL}" == *"."* ]] && [[ "${VAL}" != *".0"* ]] && echo `printf "%'.${DEC}f\n" ${VAL}` || echo `printf "%'.0f\n" ${VAL}`
}