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

parseInt Returning Zero for parseInt('09') and parseInt('08')

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • 3.0.0
    • JavaScript
    • None
    • Fully Compatible
    • ALL
    • Hide

      print(parseInt('09'))

      Show
      print(parseInt('09'))
    • QuInt 8 08/28/15

    Description

      When using parseInt for the strings '09' and '08' zero is incorrectly returned. I haven't been able to reproduce this for other '0*' strings.

      Attachments

        Activity

          People

            max.hirschhorn@mongodb.com Max Hirschhorn
            stephenerstad STEPHEN J ERSTAD
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: