Hi, If you have number with prefix as '0', it is considered as an Octal number not a decimal number...
So in actionscript x = 011 means octal(11) Octal(11) = 1*8^1 + 1*8^0 = 9 -abdul -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Christoph Diefenthal Sent: Tuesday, October 04, 2005 2:36 PM To: '[email protected]' Subject: [flexcoders] Number("011") = 9 ???? Does anyone know why this happens??? Try it on your own server : <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"> <mx:Button label="Value Of String" click="valueOfString()" /> <mx:Script> <![CDATA[ import mx.controls.Button; public function valueOfString():Void { // the result is 9 ????? mx.controls.Alert.show("" + Number("011")); } ]]> </mx:Script> </mx:Application> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links ------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

