punchykool
MIS
How do I get `expr` to recognize a decimal?
Say I want to multiply some whole number by .05.
expr 50000 \* .05
On my Sun OS 5.6 machine, this command yields:
"expr: syntax error"
I also tried protecting the dot, but that did not help either.
Perhaps there are other soutions. Thanks in advance.
Say I want to multiply some whole number by .05.
expr 50000 \* .05
On my Sun OS 5.6 machine, this command yields:
"expr: syntax error"
I also tried protecting the dot, but that did not help either.
Perhaps there are other soutions. Thanks in advance.