Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-200

Document the maximal & minimal value of an 'int'

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None

      Goals

      Get information on the maximum value of a field with type 'int'.

      Expected Results

      That https://realm.io/docs/javascript/2.0.4/api/Realm.html#~PropertyType would note the maximal value that I can store and retrieve from a field of type 'int'.

      Generally the maximal and minimal values of an int in a Realm is 2^63-1 and -(2^63) respectively, but as these are represented as Number in a JavaScript environment, the maximal safe integer value is actually way smaller: Number.MAX_SAFE_INTEGER = 9007199254740991 and Number.MIN_SAFE_INTEGER = -9007199254740991.

      Actual Results

      It's not mentioned.

      Version of Realm and Tooling

      • Realm JS SDK Version: 2.0.4
      • Node or React Native: N/A
      • Client OS & Version: N/A
      • Which debugger for React Native: N/A

            Assignee:
            Unassigned Unassigned
            Reporter:
            kraen.hansen@mongodb.com Kræn Hansen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: