Arrays in C Programming. Pointers in C. Find roots of a quadratic equation. Print Pyramids and Patterns. Check prime number. Print the Fibonacci series. Reference Materials string. Start Learning C. Explore C Examples. Related Topics C cbrt. I know you do BUT even if you don't, need not to worry. See the definition of both the functions for ceil function it says that it'll return the smallest integer value greater than or equal to x and on the other hand for the floor function it says that it will return largest integer value less than or equal to x.
Focus on the underlined part that says or equal to x. It implies that if the value inside the variable is equal to the nearest integer value then the value to be returned would also be the same.
I hope you have understood my point. Description: This function is used to return the absolute value of x. Description: This function is used to return the remainder of x divided by y. It says nan What does it mean???? Now let's see why this output showed up inour case specifically. Here's how? Take your time to think Did you find any? Because any such value does not exist and that's why our output was nan. I hope you understood what I wanted to convey. Description: This function is used to return the value of e raised to the xth power.
Description: This function is used to return the fraction component part after the decimal , and sets integer to the integer component. Parameters: x is any floating point value and integer is the pointer to an object where the integralpart is to be stored. Description: This function is used to return the x raised to the power of y. Description: This function is used to return the square root of x. Compiler Design. Computer Organization. Discrete Mathematics. Ethical Hacking. Computer Graphics.
Software Engineering. Web Technology. Cyber Security. C Programming. Control System. Data Mining. Data Warehouse. Javatpoint Services JavaTpoint offers too many high quality services.
0コメント