Top "Ceil" questions

A function common to many programming languages that returns the next integer value by rounding the value up if necessary.

Round up a CGFloat in Swift

How can I round up a CGFloat in Swift? I've tried ceil(CDouble(myCGFloat)) but that only works on iPad …

swift rounding cgfloat ceil
Floor or ceiling of a pandas series in python?

I have a pandas series series. If I want to get the element-wise floor or ceiling, is there a built …

python pandas series floor ceil
Rounding up to the second decimal place

Possible Duplicate: PHP Round function - round up to 2 dp? What my problem is: When i use ceil(3.6451895227869); i get …

php numbers rounding ceil
C++ round a double up to 2 decimal places

I am having trouble rounding a GPA double to 2 decimal places. (ex of a GPA needed to be rounded: 3.67924) I …

c++ rounding cin ceil
Get ceiling integer from number in linux (BASH)

How would I do something like: ceiling(N/500) N representing a number. But in a linux Bash script

linux bash shell ceil
Rounding up and down a number C++

I'm trying to allow my program to round a number up and down respectively. For example, if the number is 3.6, …

c++ cmath ceil
What's the difference between the pair of functions floor()/ceil() and min()/max()?

I would say all programming languages have functions with these names to choose the lesser or greater of two values: …

max min floor ceil
Rounding to nearest fraction (half, quarter, etc.)

So, I need to create the following functions but my head can't think of any possibility in PHP without complicated …

php rounding printf floor ceil
Is there any Java function or util class which does rounding this way: func(3/2) = 2?

Is there any Java function or util class which does rounding this way: func(3/2) = 2 Math.ceil() doesn't help, which by …

java rounding ceil
Ruby .ceil and .floor

I'm new to Ruby and I'm trying to figure out how ceil and floor works as I get different answers …

ruby math floor ceil