your $PS1 is quite funny. any way you need to use another shell like [ksh93, yash or zsh](https://unix.stackexchange.com/q/40786/44425), or use another tool for the maths
– phuclvMay 20 '17 at 11:08
@LưuVĩnhPhúc it is unicode, so any shell supporting unicode will work. That is all of them, though some struggle with non-ascii, when calculating widths. However you may need to install a new font, maybe a different terminal emulator.
– ctrl-alt-delorMay 20 '17 at 13:21
1 Answers1
2
You can't. Bash will only work with integers. For more precision, use something like bc.