<divclass="content sourceset-depenent-content"data-active=""data-togglable=":micro_utils.dokka:dokkaHtml/androidMain"><divclass="symbol monospace"><spanclass="token keyword"></span><spanclass="token keyword">fun </span><ahref="[android]calculate-pages-number.html"><spanclass="token function">calculatePagesNumber</span></a><spanclass="token punctuation">(</span>datasetSize<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html">Long</a><spanclass="token punctuation">, </span>pageSize<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><divclass="symbol monospace"><spanclass="token keyword"></span><spanclass="token keyword">fun </span><ahref="[android]calculate-pages-number.html"><spanclass="token function">calculatePagesNumber</span></a><spanclass="token punctuation">(</span>datasetSize<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><spanclass="token punctuation">, </span>pageSize<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><pclass="paragraph">Calculates pages count for given <ahref="[android]calculate-pages-number.html">datasetSize</a></p><br><divclass="symbol monospace"><spanclass="token keyword"></span><spanclass="token keyword">fun </span><ahref="[android]calculate-pages-number.html"><spanclass="token function">calculatePagesNumber</span></a><spanclass="token punctuation">(</span>pageSize<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><spanclass="token punctuation">, </span>datasetSize<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html">Long</a><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><pclass="paragraph">Calculates pages count for given <ahref="[android]calculate-pages-number.html">datasetSize</a>. As a fact, it is shortcut for <ahref="[android]calculate-pages-number.html">calculatePagesNumber</a></p><h4class="">Return</h4><pclass="paragraph">calculated page number which can be correctly used in <ahref="[android]-pagination-result/index.html">PaginationResult</a> as <ahref="[android]-pagination-result/page.html">PaginationResult.page</a> value</p></div></div>