cork icon indicating copy to clipboard operation
cork copied to clipboard

"Convert to a different radix" command.

Open mgaggero opened this issue 2 years ago • 0 comments

Hi, it would be really useful to have a "to radix" command to quickly and temporary convert a number or the result of an expression to a different radix (for example when working with memory address and segments sizes):

cork> 0xCAFE to dec
51966
cork> 0xCAFE + 2 * 8 * 0x20 to dec
52478
cork> 0xCAFE + 2 * 8 * 0x20
0xccfe
cork> ans to bin
0b1100110011111110
cork> 1234 to hex
0x4d2
cork> (0xCAFE + 2 * 8 * 0x20) to oct
0o146376

mgaggero avatar Oct 18 '22 21:10 mgaggero