# Hex, Octal, converstions to Int? Tricks anyone?

Brett Swift

Ranch Hand

Posts: 61

posted 14 years ago

My textbook just goes through literally 2 or 3 examples of each.

ie 010 = int 8.

and 0xf = int 15.

Does anyone have a trick to figure out the larger numbers? Maybe my brain is jello from studying too hard...cuz I can't seem to figure out a formula to convert larger Hex, and Octal numbers into an integer!

Thanks in advance! ! !

ie 010 = int 8.

and 0xf = int 15.

Does anyone have a trick to figure out the larger numbers? Maybe my brain is jello from studying too hard...cuz I can't seem to figure out a formula to convert larger Hex, and Octal numbers into an integer!

Thanks in advance! ! !

Corey McGlone

Ranch Hand

Posts: 3271