C++ Math llround()
This function is used to round off the given value and cast to long long integer.
Suppose a number is 'x'. Syntax would be:
x: The value that can be either double or float.
It returns the rounded value of x. The return type of the function is long long integer.
Let's see a simple example.
The value of x is :50.8 The rounded value of x is :51
JavaTpoint offers too many high quality services. Mail us on [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