File tree 6 files changed +6
-6
lines changed
6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ unix_epoch () { date --date="$@" +"%s"; }
138
138
check_real () { if [[ " $1 " == * ' .' * ]]; then echo ' float' ; else echo ' int' ; fi ; }
139
139
140
140
# convert to float if the number is 'int'
141
- to_float () { if [[ $( check_real $1 ) == ' int' ]]; then printf " %.1f" " $1 " ; echo ; else printf " $1 " ; echo ; fi ; }
141
+ to_float () { if [[ $( check_real $1 ) == ' int' ]]; then printf " %.1f" " $1 " ; echo ; else printf " %.5f " " $1 " ; echo ; fi ; }
142
142
143
143
# join array element by the specified delimiter
144
144
join_by () { local IFS=" $1 " ; shift ; echo " $* " ; }
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ format_date () { date --date="$1" +"$2"; }
136
136
check_real () { if [[ " $1 " == * ' .' * ]]; then echo ' float' ; else echo ' int' ; fi ; }
137
137
138
138
# convert to float if the number is 'int'
139
- to_float () { if [[ $( check_real $1 ) == ' int' ]]; then printf " %.1f" " $1 " ; echo ; else printf " $1 " ; echo ; fi ; }
139
+ to_float () { if [[ $( check_real $1 ) == ' int' ]]; then printf " %.1f" " $1 " ; echo ; else printf " %.5f " " $1 " ; echo ; fi ; }
140
140
141
141
# join array element by the specified delimiter
142
142
join_by () { local IFS=" $1 " ; shift ; echo " $* " ; }
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ format_date () { date --date="$1" +"$2"; }
137
137
check_real () { if [[ " $1 " == * ' .' * ]]; then echo ' float' ; else echo ' int' ; fi ; }
138
138
139
139
# convert to float if the number is 'int'
140
- to_float () { if [[ $( check_real $1 ) == ' int' ]]; then printf " %.1f" " $1 " ; echo ; else printf " $1 " ; echo ; fi ; }
140
+ to_float () { if [[ $( check_real $1 ) == ' int' ]]; then printf " %.1f" " $1 " ; echo ; else printf " %.5f " " $1 " ; echo ; fi ; }
141
141
142
142
# join array element by the specified delimiter
143
143
join_by () { local IFS=" $1 " ; shift ; echo " $* " ; }
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ unix_epoch () { date --date="$@" +"%s"; }
135
135
check_real () { if [[ " $1 " == * ' .' * ]]; then echo ' float' ; else echo ' int' ; fi ; }
136
136
137
137
# convert to float if the number is 'int'
138
- to_float () { if [[ $( check_real $1 ) == ' int' ]]; then printf " %.1f" " $1 " ; echo ; else printf " $1 " ; echo ; fi ; }
138
+ to_float () { if [[ $( check_real $1 ) == ' int' ]]; then printf " %.1f" " $1 " ; echo ; else printf " %.5f " " $1 " ; echo ; fi ; }
139
139
140
140
# join array element by the specified delimiter
141
141
join_by () { local IFS=" $1 " ; shift ; echo " $* " ; }
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ unix_epoch () { date --date="$@" +"%s"; }
135
135
check_real () { if [[ " $1 " == * ' .' * ]]; then echo ' float' ; else echo ' int' ; fi ; }
136
136
137
137
# convert to float if the number is 'int'
138
- to_float () { if [[ $( check_real $1 ) == ' int' ]]; then printf " %.1f" " $1 " ; echo ; else printf " $1 " ; echo ; fi ; }
138
+ to_float () { if [[ $( check_real $1 ) == ' int' ]]; then printf " %.1f" " $1 " ; echo ; else printf " %.5f " " $1 " ; echo ; fi ; }
139
139
140
140
# join array element by the specified delimiter
141
141
join_by () { local IFS=" $1 " ; shift ; echo " $* " ; }
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ unix_epoch () { date --date="$@" +"%s"; }
139
139
check_real () { if [[ " $1 " == * ' .' * ]]; then echo ' float' ; else echo ' int' ; fi ; }
140
140
141
141
# convert to float if the number is 'int'
142
- to_float () { if [[ $( check_real $1 ) == ' int' ]]; then printf " %.1f" " $1 " ; echo ; else printf " $1 " ; echo ; fi ; }
142
+ to_float () { if [[ $( check_real $1 ) == ' int' ]]; then printf " %.1f" " $1 " ; echo ; else printf " %.5f " " $1 " ; echo ; fi ; }
143
143
144
144
# join array element by the specified delimiter
145
145
join_by () { local IFS=" $1 " ; shift ; echo " $* " ; }
You can’t perform that action at this time.
0 commit comments