3 Replies Latest reply on Oct 14, 2011 9:09 AM by jfb00

    Weird issue using Number

    jfb00 Level 3

      Hi All,

      I create a custom component not long ago http://forums.adobe.com/message/3798449#3798449

      To store value from this component I am using realValue parameter but when I pass a number with 2 decimals, it store in the database the number plus 15 decimals "0"s.

      It is something wrong converting string to number using NUMBER function?

      I try also passing Number:

      public function set realValue(value:Number):void
                  {
                      //Set real value
                      _realValue = value;
                     
                      // format the number here
                      super.text = formatDecimal(Number(_realValue));
                  }

      Thanks

       

      Johnny