Skip to content

Commit

Permalink
float fix for all locales
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jan 3, 2024
1 parent 5a8d766 commit 95c13fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion help/float.sh
Expand Up @@ -30,4 +30,4 @@ if [ "${num}" == 'NaN' ]; then
exit
fi

(printf '%.8f' "${num}" 2>/dev/null || echo 0) | sed -e 's/0\+$//' | sed -e 's/\.$//'
(LC_NUMERIC=C printf '%.8f' "${num}" 2>/dev/null || echo 0) | sed -e 's/0\+$//' | sed -e 's/\.$//'

0 comments on commit 95c13fb

Please sign in to comment.