0 Replies Latest reply on Jun 21, 2007 7:50 AM by IonicRobin

    bug in Number.toFixed() method

    IonicRobin Level 1
      I seem to have come across a problem with the Number.toFixed() method in Flex Builder 2

      The following code:
      var test:Number = 5e-5;
      trace(test);
      trace(test.toFixed(0));

      Outputs:
      0.00005
      1.

      Is this a known bug? Is there a work-around or fix at present?

      Regards,

      Robin