C++ Math remainder()The function finds the floating point remainder of numerator/denominator (rounded to the nearest integer value). Formulae of remainder :where, r = numerator/denominator and it is rounded to the nearest integral value. SyntaxConsider a numerator 'n' and denominator 'd'. Syntax would be: Note: The return_type can be float, double or long double.Parametern: Value of the numerator. d: Value of the denominator. Return valueIt returns the floating point remainder n/d. Example 1Let's see a simple example. Output: Values of numerator and denominator are :5.7 , 8.9 Remainder is :-3.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