I'm trying to do a
hex calculation directly with
bc, I already specified the scale.
echo 'scale=16;c06b1000-c06a5e78' | bc
But I still get a 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 (
While not technically an answer to your question, you might want to consider moo(1) instead of bc(1).