Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-85211

Javascript's Number.isSafeInteger(x) yields false if abs(x) > 54

    XMLWordPrintable

Details

    • All
    • 87d948b34004ab7c44bd85d73dc0c6144db15853

    Description

      The Javascript function Number.isSafeInteger(val) yields false if abs(val) > 54.

      The implementation only looks correct at the first glance .

      NumberPrototype::method_isSafeInteger(...) {

          return Encode(dv == iv && std::fabs(iv) <= (2^53)-1);

      }

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            fkaelberer Felix Kälberer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes