N base to decimal [integer]

Bits * N ^ (number of bits – 1)

For example: (2070) 16 = 2 * 16 ^ 3 + 0 * 16 ^ 2 + 7 * 16 ^ 1 + 0 * 16 ^ 0 = 8304

Decimal to N base [integer]

short division

For example: 8304 \ 16 = 519 …… 0 – ( XXX0 ) 16
519 \ 16 = 32 …… 7 – ( XX70 ) 16
32 \ 16 = 2 …… 0 – ( X070 ) 16
2 \ 16 = 0 …… 2 – ( 2070 ) 16

Convert N base to decimal [decimal]

bits*N^ (number of digits)

For example: (.44) 8 = 4 * 8 ^ -1 + 4 * 8 ^ -2 = .5625

Convert base 10 to base N [decimal]

multiplication rounding

For example: .5625 * 8 = 4.5 – ( .4X ) 8
.5 * 8 = 4 – ( .44 ) 8

Post Reply