[]
Divides one Length value by another.
public static double Divide(Length unit1, Length unit2)
Type | Name | Description |
---|---|---|
Length | unit1 | A dividend Length value. |
Length | unit2 | A divisor Length value. |
Type | Description |
---|---|
double | A double value indicating the quotient of the division. |
var length1 = new Length("2in");
var length2 = new Length("1in");
var result = Length.Divide(length1, length2); // 2
Type | Condition |
---|---|
DivideByZeroException | Throws if |