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

loss of precision for long long values in v1 index

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.0.0-rc1
    • None
    • Index Maintenance
    • None
    • Fully Compatible
    • ALL

    Description

      I think this
      double d = (double) n;
      if( d != n ) {

      needs to be this

      double d = (double) n;
      if( (long long)d != n ) {

      Test forthcoming.

      Attachments

        Activity

          People

            dwight@mongodb.com Dwight Merriman
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: