Results 1 to 4 of 4

Thread: Format '0,0.00#############' introduces floating point errors?

    You found a bug! We've classified it as EXTJS-17099 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium Member
    Join Date
    Oct 2015
    Posts
    15

    Default Format '0,0.00#############' introduces floating point errors?

    Ext 6.0.1.250

    Ext.util.Format.number(123123.92, '0,0.00#############')

    Expect:

    "123,123.92"

    Get:

    "123,123.919999999998254"

  2. #2

  3. #3
    Sencha Premium Member
    Join Date
    Oct 2015
    Posts
    15

    Default

    Quote Originally Posted by alex.volfson View Post
    I would agree, same bug as EXTJS-17099. Thank you.

  4. #4

    Default

    I meant, he seemed to have a recommended fix if you were interested in using it.

Similar Threads

  1. Replies: 2
    Last Post: 9 May 2013, 7:09 AM
  2. [OPEN] findRecord returns false positives when searching for floating point values.
    By stefankendall in forum Sencha Touch 2.x: Bugs
    Replies: 2
    Last Post: 7 Sep 2012, 7:22 AM
  3. Replies: 2
    Last Post: 21 Feb 2012, 6:22 PM
  4. Replies: 2
    Last Post: 28 Sep 2011, 12:46 PM
  5. [solved] Can you format floating point numbers in a grid, i.e. %3.2f?
    By BrianK in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 17 Sep 2008, 1:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •