Table of Contents

Remainder Method

Definition

Namespace
Cuemon
Assemblies
Cuemon.Core.dll
Source
src/Cuemon.Core/Calculator.cs

Remainder<T>(T, T)

Performs a binary division of the two specified values and computes the remainder hereof.

public static T Remainder<T>(T x, T y) where T : struct, IConvertible

Parameters

x T

The dividend.

y T

The divisor.

Returns

T

The remainder after dividing x by y.

Type Parameters

T

The type of the values for the operand operation.

Exceptions

TypeArgumentException

T is outside the range of allowed types.
Allowed types are: byte, decimal, double, short, int, long, sbyte, float, ushort, uint or ulong.

DivideByZeroException

y is zero.

OverflowException

The sum of x and y is less than or greater than the by T valid MinValue and MaxValue.