C++ Math llrint()
The function rounds off the given value using current rounding mode and returns the value of type long long int.
Suppose a number is 'x'. Syntax would be:
x: The value which is to be rounded.
It returns the rounded value of 'x' and the return type of the value is long long int.
Let's see a simple example when the rounding direction is upwards.
Value of x is :5.3 Rounded value of x is :6
Let's see a simple example when the rounding direction is downwards.
Value of x is :7.9 Rounded value of x is :7
JavaTpoint offers too many high quality services. Mail us on h[email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected].
Duration: 1 week to 2 week