C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
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: return_type remquo(data_type n, data_type d, int* p); 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. #include 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. #include Output: Value of remainder is :0.2 Value of quotient is :2
Next TopicC++ Math Functions
|