Mega Code Archive

 
Categories / Flash ActionScript / Data Type
 

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)     }   } }