Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-9684

parseInt(NumberLong()) Creates NaN

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Works as Designed
    • Affects Version/s: 2.4.3
    • Fix Version/s: None
    • Component/s: JavaScript
    • Environment:
      CentOs 6.3 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
      And
      Windows 7
    • Backwards Compatibility:
      Major Change
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      x = NumberLong(5)
      parseInt

      Show
      x = NumberLong(5) parseInt

      Description

      When trying to parseInt on a bson NumberLong, the result will be NaN instead of a number

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: