AVAX first 3 digits

This commit is contained in:
2025-01-18 11:14:21 -05:00
parent 85fb63208d
commit aef13d7f26

View File

@@ -28,7 +28,8 @@ if (( $(echo "$price < 1" | bc -l) )); then
elif (( $(echo "$price < 10" | bc -l) )); then
printf "%0.3f\n" "$price" | cut -c 3-
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
echo "$price" | numfmt --grouping | cut -c -3
elif (( $(echo "$price < 10000" | bc -l) )); then