File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ unix_epoch () { date --date="$@" +"%s"; }
138138check_real () { if [[ " $1 " == * ' .' * ]]; then echo ' float' ; else echo ' int' ; fi ; }
139139
140140# 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 ; }
142142
143143# join array element by the specified delimiter
144144join_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"; }
136136check_real () { if [[ " $1 " == * ' .' * ]]; then echo ' float' ; else echo ' int' ; fi ; }
137137
138138# 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 ; }
140140
141141# join array element by the specified delimiter
142142join_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"; }
137137check_real () { if [[ " $1 " == * ' .' * ]]; then echo ' float' ; else echo ' int' ; fi ; }
138138
139139# 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 ; }
141141
142142# join array element by the specified delimiter
143143join_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"; }
135135check_real () { if [[ " $1 " == * ' .' * ]]; then echo ' float' ; else echo ' int' ; fi ; }
136136
137137# 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 ; }
139139
140140# join array element by the specified delimiter
141141join_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"; }
135135check_real () { if [[ " $1 " == * ' .' * ]]; then echo ' float' ; else echo ' int' ; fi ; }
136136
137137# 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 ; }
139139
140140# join array element by the specified delimiter
141141join_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"; }
139139check_real () { if [[ " $1 " == * ' .' * ]]; then echo ' float' ; else echo ' int' ; fi ; }
140140
141141# 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 ; }
143143
144144# join array element by the specified delimiter
145145join_by () { local IFS=" $1 " ; shift ; echo " $* " ; }
You can’t perform that action at this time.
0 commit comments