Questions tagged [octal]
The octal tag has no usage guidance.
3
questions
22
votes
3answers
3k views
Why do so many languages treat numbers starting with 0 as octal?
I've read Where are octals useful? and it seems like octals are something that were once upon a time useful.
Many languages treat numbers preceding with a 0 as octal, so the literal 010 is actually 8....
2
votes
2answers
296 views
Which numeral systems are useful in computer science?
I am wondering which numeral system different programmers are using, or would use if their language has support for them. As an example, in C++ we can use:
Octal by prefixing with 0 (e.g. 0377)
...
37
votes
11answers
17k views
Where are octals useful? [closed]
I just banged my head against the table for some 20 minutes looking at a totally weird bug in PHP, and then I realized there's octal. The <%(*&#> octal.
In short, I padded some literals with ...