dc -e '2 k 12.34 34.12 + p'
46.46
Haha it sounds like you have too much time on your hands. :Dyeah, that dc is faster, tks.
The usual method of performing calculations on the command line "expr" doesn't support floating point, that's true, but you could probably get better performance if you used "dc" instead, unless you really don't like reverse polish notation.Codedc -e '2 k 12.34 34.12 + p'
46.46