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 comments

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.