Divide Method
Definition
Divide<T>(T, T)
Performs a binary division of the two specified values.
public static T Divide<T>(T x, T y) where T : struct, IConvertible
Parameters
xTThe dividend.
yTThe divisor.
Returns
- T
The result of dividing
xbyy.
Type Parameters
TThe type of the values for the operand operation.
Exceptions
- TypeArgumentException
Tis outside the range of allowed types.
Allowed types are: byte, decimal, double, short, int, long, sbyte, float, ushort, uint or ulong.- DivideByZeroException
yis zero.- OverflowException
The sum of
xandyis less than or greater than the byTvalidMinValueandMaxValue.