0x(whatever) for hex, what about binary?

Started by
11 comments, last by vbisme 22 years, 8 months ago
brettporter, I found that extremely interesting.

Also, is there any speed penalty for setting a variable equal to a hexidecimal value, an octal value of a base10 value?

Possibility
Advertisement
Any speed penalty for using a different base is compile time. All of the different bases are represented the same at run time.

Even so, the speed penalties are probably extremely small, don''t worry about it

Oh yah, my bad. I guess it would be switched at compile time and not at run time, for some reason i was just thinking of the speed penalties suffered converting a float to an int, but its not the same

Possibility

This topic is closed to new replies.

Advertisement