Uploading here instead of fb - coding, abstraction, base numbers

Words
29
Reading
1 min
Listen
Play
8y

image
Page 56, "Code" by Charles Petzold.
Is there a way to calculate the translation of base-8 to base-10; and, as an extension of this, from any base to another?

Uploading here instead of fb - coding, abstraction, base numbers | Ecency