11 Replies Latest reply on Jun 14, 2010 1:18 PM by msakrejda

    Issue with number data type.

    nargis_himani Level 1


      I am getting some issue with number data type.
      Please check out following

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                               private function getMaxValue():Number{

                                      return Number(9999999999999.99999);
                               private function clickHandler():void{
                                       var num:Number = getMaxValue();
                                       txtOutput.text = getMaxValue().toString();
               <mx:Text id="txtOutput" />
               <mx:Button label="Get Value" click="clickHandler()"/>

      Here i am expecting out put as (9999999999999.99999) but the function
      returns 10000000000000.

      Please let me know if any one has solution for this.