Update default.inc
This commit is contained in:
@@ -135,7 +135,9 @@ ANYKEY2CONTINUE(){
|
||||
echo -e "\e[1A\n\e[0K\r\n"
|
||||
}
|
||||
ROUND_NUMBER(){
|
||||
echo $(echo $1 | awk '{print int($1+0.5)}')
|
||||
[ "${2}" != "" ] && decimals_to_round=${2} || decimals_to_round=0
|
||||
# echo $(echo $1 | awk '{print int($1+0.5)}')
|
||||
echo $(echo $1 | awk '{printf "%.${decimals_to_round}f\n", $1}')
|
||||
}
|
||||
SHOW_TIME() {
|
||||
num=$(ROUND_NUMBER ${1})
|
||||
|
||||
Reference in New Issue
Block a user