About 159,000 results
Open links in new tab
  1. Ceil and Floor functions in C++ - GeeksforGeeks

    May 16, 2025 · ceil () function in C++ returns the smallest integer that is greater than or equal to the value passed as the input argument. Syntax: Example: Ceil of 2.3 is : 3. Ceil of -2.3 is : -2. The ceil …

  2. Floor and ceiling functions - Wikipedia

    In mathematics, the floor function is the function that takes as input a real number x, and gives as output the greatest integer less than or equal to x, denoted ⌊x⌋ or floor (x). Similarly, the ceiling function …

  3. std::ceil, std::ceilf, std::ceill - cppreference.com

    Oct 15, 2023 · The library provides overloads of std::ceil for all cv-unqualified floating-point types as the type of the parameter.(since C++23) (See math-floating-point and deduced-simd-t for their …

  4. Math.ceil () - JavaScript - MDN

    Jul 10, 2025 · The Math.ceil() static method always rounds up and returns the smallest integer greater than or equal to a given number.

  5. C++ Math ceil () Function - W3Schools

    The ceil() function rounds a number UP to the nearest integer. The ceil() function is defined in the <cmath> header file. Tip: To round a number DOWN to the nearest integer, look at the floor () …

  6. ceil, ceilf, ceill | Microsoft Learn

    Jul 9, 2025 · Return value The ceil functions return a floating-point value that represents the smallest integer that is greater than or equal to x. There's no error return.

  7. ceil () Function - C math.h - Syntax, Parameters, Examples

    The ceil () function in C rounds a given floating-point number upward, returning the smallest integral value that is not less than the input, represented as a floating-point number.

  8. C++ ceil () - C++ Standard Library - Programiz

    The ceil() function in C++ returns the smallest possible integer value which is greater than or equal to the given argument. It is defined in the cmath header file.

  9. ceil in C/C++: rounding up - codelessons.dev

    In this article, we’ll dive into the ceil function, which lets us round a number up in C/C++. First, we’ll see how to use it with an example and then we’ll try implementing it ourselves.

  10. C Language: ceil function (Ceiling) - TechOnTheNet

    In the C Programming Language, the ceil function returns the smallest integer that is greater than or equal to x (ie: rounds up the nearest integer).