jstests/noPassthrough/log_find_getmore.js
/**
 * Be sure to avoid rounding errors when converting a cursor ID to a string, since converting a
 * NumberLong to a string may not preserve all digits.
 */
Be sure to avoid rounding errors when converting a cursor ID to a string, since converting a
NumberLong to a string may not preserve all digits.
Be sure to avoid rounding errors when converting a cursor ID to a string since converting a NumberLong to a string may not preserve all digits .
function cursorIdToString(cursorId) {
    let cursorIdString = cursorId.toString();
    if (cursorIdString.indexOf("NumberLong") === -1) {
        return cursorIdString;
    }
    return cursorIdString.substring("NumberLong(\"".length, cursorIdString.length - "\")".length);
}
function cursorIdToString ( cursorId ) { let cursorIdString = cursorId . toString ( ) ; if ( cursorIdString . indexOf ( "NumberLong" ) === - 1 ) { return cursorIdString ; } return cursorIdString . substring ( "NumberLong(\"" . length , cursorIdString . length - "\")" . length ) ; }
Be sure to avoid rounding errors when converting a cursor ID to a string, since converting a
 NumberLong to a string may not preserve all digits.
Be sure to avoid rounding errors when converting a cursor ID to a string since converting a NumberLong to a string may not preserve all digits .