Update default.inc
This commit is contained in:
1 parent
5b497da656
commit
76e7680e08
1 file changed
+7
@@ -285,6 +285,13 @@ function arr_count() {
|
||||
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}`
|
||||
}
|
||||
|
||||
|
||||
|
||||
declare -A abet
|
||||
|
||||
Reference in new issue
Block a user