Subtraction Operator (Length)
Subtracts one
Length value from another and returns the result in the unit of the first length.
Parameters
- unit1
- A minuend Length value.
- unit2
- A subtrahend Length value.
Return Value
A new
Length value representing the difference between the two lengths.
var length1 = new Length("2in");
var length2 = new Length("1in");
var result = length1 - length2; // 1in