2 Replies Latest reply on Nov 20, 2009 6:01 AM by lee704

    0E-8 Shows in DataGrid instead of 0.00000000

    lee704 Level 1

      I have a DataGrid that needs to display numeric data (retrieved from a database) to a  precision of 8 decimal places.  This works as expected until the data returned is "0".  If "0" is returned from the DataProvider, the DataGrid displays "0E-8" instead of "0.00000000".  Any suggestion on how can I resolve this?

       

      Thanks!

        • 1. Re: 0E-8 Shows in DataGrid instead of 0.00000000
          paul.williams Level 4

          Are you using a NumberFormatter to set the precision or some other mechanism?

          • 2. Re: 0E-8 Shows in DataGrid instead of 0.00000000
            lee704 Level 1

            I am using a NumberFormatter.  My code is below:

             

            <mx:NumberFormatter id="myNumber"
                                    decimalSeparatorFrom="."
                                    decimalSeparatorTo="."
                                    precision="8"
                                    rounding="none"
                                    thousandsSeparatorFrom=","
                                    thousandsSeparatorTo=","
                                    useNegativeSign="true"
                                    useThousandsSeparator="true"/>