Any Double extension methods
More...
|
static bool | IsEqual (this double val1, double val2) |
| Determines if 2 doubles are effectively equal More...
|
|
static bool | IsLessThan (this double val1, double val2) |
| Determines if a double is effectively less than another value More...
|
|
static bool | IsLessThanOrEqual (this double val1, double val2) |
| Determines if a double is effectively less than or equal to another value More...
|
|
static bool | IsMoreThan (this double val1, double val2) |
| Determines if a double is effectively more than another value More...
|
|
static bool | IsMoreThanOrEqual (this double val1, double val2) |
| Determines if a double is effectively more than or equal to another value More...
|
|
static bool | Between (this double val, double val1, double val2, bool includeLowerValue=true, bool includeUpperValue=true) |
| Determines if a double is between other values More...
|
|
static long | IntegerPart (this double val) |
| Returns the number to the left of the decimal point More...
|
|
Any Double extension methods
◆ Between()
static bool Sphyrnidae.Common.Extensions.DoubleExtensions.Between |
( |
this double |
val, |
|
|
double |
val1, |
|
|
double |
val2, |
|
|
bool |
includeLowerValue = true , |
|
|
bool |
includeUpperValue = true |
|
) |
| |
|
static |
Determines if a double is between other values
- Parameters
-
val | The value being compared |
val1 | The lower value to compare |
val2 | The upper value to compare |
includeLowerValue | Specifies whether the check will include a value equal to val1 (lower) |
includeUpperValue | Specifies whether the check will include a value equal to val2 (upper) |
- Returns
- True if val falls between val1 and val2. False otherwise
◆ IntegerPart()
static long Sphyrnidae.Common.Extensions.DoubleExtensions.IntegerPart |
( |
this double |
val | ) |
|
|
static |
Returns the number to the left of the decimal point
- Parameters
-
- Returns
- The integer to the left of the decimal point
◆ IsEqual()
static bool Sphyrnidae.Common.Extensions.DoubleExtensions.IsEqual |
( |
this double |
val1, |
|
|
double |
val2 |
|
) |
| |
|
static |
Determines if 2 doubles are effectively equal
- Parameters
-
val1 | The first value to compare |
val2 | The 2nd value to compare |
- Returns
- True if they are effectively equal, false otherwise
◆ IsLessThan()
static bool Sphyrnidae.Common.Extensions.DoubleExtensions.IsLessThan |
( |
this double |
val1, |
|
|
double |
val2 |
|
) |
| |
|
static |
Determines if a double is effectively less than another value
- Parameters
-
val1 | The first value to compare |
val2 | The 2nd value to compare |
- Returns
- True if the first value is less than the 2nd, false otherwise
◆ IsLessThanOrEqual()
static bool Sphyrnidae.Common.Extensions.DoubleExtensions.IsLessThanOrEqual |
( |
this double |
val1, |
|
|
double |
val2 |
|
) |
| |
|
static |
Determines if a double is effectively less than or equal to another value
- Parameters
-
val1 | The first value to compare |
val2 | The 2nd value to compare |
- Returns
- True if the first value is less than or equal to the 2nd, false otherwise
◆ IsMoreThan()
static bool Sphyrnidae.Common.Extensions.DoubleExtensions.IsMoreThan |
( |
this double |
val1, |
|
|
double |
val2 |
|
) |
| |
|
static |
Determines if a double is effectively more than another value
- Parameters
-
val1 | The first value to compare |
val2 | The 2nd value to compare |
- Returns
- True if the first value is more than the 2nd, false otherwise
◆ IsMoreThanOrEqual()
static bool Sphyrnidae.Common.Extensions.DoubleExtensions.IsMoreThanOrEqual |
( |
this double |
val1, |
|
|
double |
val2 |
|
) |
| |
|
static |
Determines if a double is effectively more than or equal to another value
- Parameters
-
val1 | The first value to compare |
val2 | The 2nd value to compare |
- Returns
- True if the first value is more than or equal to the 2nd, false otherwise
The documentation for this class was generated from the following file:
- C:/Users/dougb/Desktop/Sphyrnidae/New/Common/Common/Extensions/DoubleExtensions.cs