I like using bc in interactive mode as a calculator. However, it only accepts the period (.) as decimal separator but I am using the a German keyboard layout, so I only have the comma (,) available on the numpad. This is quite inconvenient when using bc single handed on the numpad, because I have to move my hand and search for the period key when entering decimal fractions.
So I am looking for a simple way to use bc on the numpad only.
Some possibilities I see right now:
I would be grateful for any ideas.
this is my alias as replacement for bc:
sh -c "sed -u 's/,/./g' | bc -l"
And this shortcut under my window manager:
urxvt -e sh -c "sed -u 's/,/./g' | bc -l"
Good luck!
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments