Browse Source

AVAX first 3 digits

ubuntu
Kevin Mok 4 days ago
parent
commit
aef13d7f26
Signed by: Kevin-Mok GPG Key ID: FB0DA56BEB5D98F3
  1. 3
      scripts/executable_kraken

3
scripts/executable_kraken

@ -28,7 +28,8 @@ if (( $(echo "$price < 1" | bc -l) )); then
elif (( $(echo "$price < 10" | bc -l) )); then elif (( $(echo "$price < 10" | bc -l) )); then
printf "%0.3f\n" "$price" | cut -c 3- printf "%0.3f\n" "$price" | cut -c 3-
elif (( $(echo "$price < 100" | bc -l) )); then elif (( $(echo "$price < 100" | bc -l) )); then
echo "$price" | numfmt --grouping | cut -c -2
#echo "$price" | numfmt --grouping | cut -c -2
echo "$price" | tr -d '.' | awk '{print substr($0, 1, 3)}'
elif (( $(echo "$price < 1000" | bc -l) )); then elif (( $(echo "$price < 1000" | bc -l) )); then
echo "$price" | numfmt --grouping | cut -c -3 echo "$price" | numfmt --grouping | cut -c -3
elif (( $(echo "$price < 10000" | bc -l) )); then elif (( $(echo "$price < 10000" | bc -l) )); then

Loading…
Cancel
Save