C++ Math remquo()The function finds the floating point remainder of numerator/denominator (rounded to the nearest integer value) and it also stores the quotient internally to the pointer passed in the parameter of the function. SyntaxSuppose a numerator be 'n', denominator be 'd' and pointer 'p'. Syntax would be: Note: The return_type can be float, double or long double.Parametern: The value of numerator. d: The value of denominator. p: The pointer to an object where the quotient is stored internally. Return valueIt returns the floating point remainder n/d. Example 1Let's see a simple example when the arguments are of same type. Output: Value of remainder is :2.2 Value of quotient is :1 Example 2Let's see a simple example when the arguments are of different type. Output: Value of remainder is :0.2 Value of quotient is :2
Next TopicC++ Math Functions
|
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