Top "Octal" questions

The octal numeral system, or oct for short, is the base-8 numeral system, using the digits 0 to 7. Often used to notate Unix permissions.

How do I work around JavaScript's parseInt octal behavior?

Try executing the following in JavaScript: parseInt('01'); //equals 1 parseInt('02'); //equals 2 parseInt('03'); //equals 3 parseInt('04…

javascript integer octal
how to set value of octal in java?

I am trying to write following code.but it gives me error kindly help me. int six=06; int seven=07; int …

java octal
Parse error: Invalid numeric literal

I have the following error while running this code below: Code: <?php $a = array(00001, 00008, 00009, 00012); print_r($a); ?> Error: …

php arrays php-7 octal
How to use Python to convert an octal to a decimal

I had this little homework assignment and I needed to convert decimal to octal and then octal to decimal. I …

python decimal octal
Why are Octal numeric literals not allowed in strict mode (and what is the workaround?)

Why are Octal numeric literals not allowed in JavaScript strict mode? What is the harm? In case a developer needs …

javascript ecmascript-5 octal strict-mode
Invalid Token when using Octal numbers

I'm a beginner in python and I'm trying to use a octal number in my script, but when I try …

python syntax python-3.x octal
In what situations is octal base used?

I've seen binary and hex used quite often but never octal. Yet octal has it's own convention for being used …

language-agnostic octal
Is 0 a decimal literal or an octal literal?

Zero is always zero, so it doesn't matter. But in a recent discussion with a friend he said that octal …

c++ zero octal
Python: Invalid Token

Some of you may recognize this as Project Euler's problem number 11. The one with the grid. I'm trying to replicate …

python octal
Decimal to octal in C

I have just begun teaching myself C out of K.N King's C Programming: A Modern Approach (2ndEdn). I'm enjoying …

c decimal octal