C# - Math.IEEERemainder() Method with Example

In this tutorial, we will learn about the C# Math.IEEERemainder() method with its definition, usage, syntax, overload, and example. By Nidhi Last updated : March 29, 2023

C# Math.IEEERemainder() Method

The Math.IEEERemainder() method is used to get the remainder of double values.

Syntax

double Math.IEEERemainder(double dividend, double divisor);

Parameter(s)

  • dividend: The dividend.
  • divisor: The divisor.

Return Value

It returns the remainder of double values.

C# Example of Math.IEEERemainder() Method

The source code to demonstrate the use of IEEERemainder() method of Math class is given below. The given program is compiled and executed successfully.

using System;

class Sample {
  //Entry point of Program
  static public void Main() {
    double REM = 0;

    REM = Math.IEEERemainder(21.24, 4.0);

    Console.WriteLine("REMAINDER is: " + REM);
  }
}

Output

REMAINDER is: 1.24
Press any key to continue . . .

C# Math Class Programs »

Comments and Discussions!

Load comments ↻





Copyright © 2024 www.includehelp.com. All rights reserved.