C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
C++ Math llrint()The function rounds off the given value using current rounding mode and returns the value of type long long int. SyntaxSuppose a number is 'x'. Syntax would be: long long int llrint(data_type x); Parameterx: The value which is to be rounded. Return valueIt returns the rounded value of 'x' and the return type of the value is long long int. Example 1Let's see a simple example when the rounding direction is upwards. #include Output: Value of x is :5.3 Rounded value of x is :6 Example 2Let's see a simple example when the rounding direction is downwards. #include Output: Value of x is :7.9 Rounded value of x is :7
Next TopicC++ Math Functions
|