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));
It sounds to me like the issue is in your database, not in your code. Double check the properties of the column you are storing your data in. It sounds as if you have a min number of characters required so the db is filling out the missing length with 0's.
mmm.... you maybe right, I will check this with oracle.