r/AskComputerScience • • May 04 '26

Need help understanding why hexadecimal is sometimes portrayed by "power of 0" in rasterized explanations.

Hello, sorry if this is a really basic question for this sub, but i couldn't find a "newbie question"-esque thread.

I am in the process of learning the basics of computing and while i understand the workings of it, hexadecimal numbers keep getting explained to me in this rasterized form, in which they add i this case (1 X 16)+(8 X 1), but it reads to me like the 16^0 would make for

(8 X (16 X 0)) when it instead seems to only multiply it if the power is "> 0"

18
161
161160

Can someone explain this, as i have a hard time googling it since i cannot put it into words myself. Thank you.

Edit: Thanks for the answers, it seems i have been improperly thought and misled how and what powers are in my school days.

9 Upvotes

25 comments sorted by

View all comments

Show parent comment

1

u/zac2130_2 May 04 '26 edited May 06 '26

So wouldn't that make the 7 into 7 X (10 X 0 ) ?

Exponents are like multiplying by the base a certain amount of times, so 10⁰ is like multiplying by 10 no times (basically you change nothing), multiplying no times is not equivalent to multiplying by 0, same thing for 16⁰, you multuply by 16 no times, leave it unchanged.

1

u/CoachSevere5365 May 06 '26

No, the 7 is multiplied by 10 zero times, that is, not at all, so just 7.

The next digit to the left is multiplied by 10 once, so 6*10=60.

The next digit to the left gets multiplied by two 10s, so 51010=500.

Its exactly the same in hex but the 10s are replaced by 16s.

1

u/zac2130_2 May 07 '26

This is what I said, had a formating error in my comment.

1

u/zac2130_2 May 07 '26 edited May 07 '26

Also, I want to add that this is like the other counting systems we use near daily, think minutes in an hour(base 60), hours in a day (base 24), days in a week (base 7), days in a years (base 365.25).

One day isn't 0 hours.

Credit to Combo Class on YT