IMath<T> Interface Members
The following tables list the members exposed by IMath<T>.
Public Properties
| Name | Description | |
|---|---|---|
![]() | MaxValue | Gets the MaxValue for T. |
![]() | MinValue | Gets the MinValue for T. for DateTime it returns DateTime.MinValue (it has .Ticks = 0) |
![]() | ZeroValue | Gets the ZeroValue for T. for DateTime it returns DateTime.MinValue (it has .Ticks = 0) |
Public Methods
| Name | Description | |
|---|---|---|
![]() | Abs | Get the Absolute value of (a) |
![]() | Add | Adds lhs + rhs. for DateTime it returns a new DateTime with .Ticks = lhs.Ticks + rhs.Ticks |
![]() | Dec | Returns T-- for DateTime it decrements .Ticks |
![]() | Div | Divides lhs / rhs |
![]() | FromDouble | Converts a Double value to type |
![]() | Inc | Returns T++ for DateTime it increments .Ticks |
![]() | IsNaN | Returns if T is NaN. Only valid for Float, Double types. For all other types, always returns false |
![]() | Max | Returns the Max of A and B |
![]() | Min | Returns the Min of A and B |
![]() | MinGreaterThan | Returns the Min of A and B greater than a Floor |
![]() | Mult | Overloaded. Multiplies lhs * rhs |
![]() | Subtract | Subtracts a - b. For DateTime it returns a new DateTime with .Ticks = a.Ticks - b.Ticks |
![]() | ToDouble | Converts to the equivalent value as a double |
See Also

