In python it will give a decimal like 52.2 and I was wondering if there was a way to make it round all decimals up to the next number like 53.

I have only just started learning and I ran into this.

I used

math.ceil(number)

(Where number is enter your number)

Remember to

import math
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.