Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Java
  3. Question
Java

How to round up the result of integer division?

Asked by Chris Dyer Jun 10, 2021 1.0K views 1 answer
Share

About this question

I'm thinking in particular of how to display pagination controls, when using a language such as C# or Java.

If I have x items that I want to display in chunks of y per page, how many pages will be needed? Want to know more c# divide round up?

Your answer

1 Answer

More Java discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Java Blogs

Guides, tips and career advice on Java from JanBask experts.