LoginSignup
2
3

More than 5 years have passed since last update.

bc > 16進数で足し算 > obase=16 / ibase=16 / 8A0+020

Last updated at Posted at 2015-03-13

linux上にて16進数で足し算をしたい。

動作確認

CentOS 6.5

こちらが参考になった。

$bc
obase=16 (入力)
ibase=16 (入力)
924+020 (入力)
944
8A0+020 (入力)
8C0

上記の例では0x924に32バイト(0x20)を足している。また0x8A0に32バイト(0x20)を足している。

8A08a0ではsyntax errorとなる。

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3