I'm trying to do a hex calculation directly with bc, I already specified the scale.
echo 'scale=16;c06b1000-c06a5e78' | bc
But it still got me zero. What could be wrong?
|
I'm trying to do a
But it still got me zero. What could be wrong? |
||||
|
|
if you need answer in hex too (but note that only upper case hex digits are supported as lower case ones would conflict with function and variable names, which is why you got 0 in your example (
ps. FYI
|
||||
|
|
|
While not technically an answer to your question, you might want to consider moo(1) instead of bc(1). |
||||
|
|