totalDocs int to double