Skip to main content
deleted 2 characters in body; edited title
Source Link
terdon
  • 252.7k
  • 69
  • 481
  • 719

Does bc supportssupport hex calculations?

I'm trying to do a hex calculation directly with bc, I already specified the scale.

echo 'scale=16;c06b1000-c06a5e78' | bc 

But itI still got meget a zero. What could be wrong?

Does bc supports hex calculations?

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?

Does bc support hex calculations?

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?

edited tags
Link
Gilles 'SO- stop being evil'
  • 865.9k
  • 205
  • 1.8k
  • 2.3k

I'm trying to do hexa hex calculation directly with bcbc, I already specified the scale, but.

echo 'scale=16;c06b1000-c06a5e78' | bc,

echo 'scale=16;c06b1000-c06a5e78' | bc 

But it still got me zero, what. What could be wrong?

I'm trying to do hex calculation directly with bc, I already specified the scale, but

echo 'scale=16;c06b1000-c06a5e78' | bc,

still got me zero, what could be wrong?

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?

Source Link
daisy
  • 55.9k
  • 80
  • 253
  • 402
Loading