Octal is treated as a decimal number, not an octal number:
package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
// The number is treated as a decimal, not an octal number
trace(parseInt("017", 10)); // Displays: 17 (not 15)
}
}
}
Related examples in the same category