Provides extension methods for the float type.
Inheritance Hierarchy
KGySoft.CoreLibrariesFloatExtensions
Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 7.0.0-preview.3
Syntax
The FloatExtensions type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() ![]() | IsNegativeZero |
Gets whether the specified value is negative zero.
|
![]() ![]() | TolerantCeiling |
Gets the ceiling of the specified value using a specific tolerance.
That is the closest integral number to value if the difference from that is not larger than tolerance;
otherwise, the smallest integral value that is greater than value.
|
![]() ![]() | TolerantEquals |
Gets whether two float values are equal considering the specified tolerance.
|
![]() ![]() | TolerantFloor |
Gets the floor of the specified value using a specific tolerance.
That is the closest integral number to value if the difference from that is not larger than tolerance;
otherwise, the largest integral value that is less than value.
|
![]() ![]() | TolerantIsZero |
Gets whether the specified value can be considered zero using a specific tolerance.
|
![]() ![]() | ToRoundtripString |
Fields
Name | Description | |
---|---|---|
![]() ![]() | NegativeZero |
Represents the negative zero value. This value is constant.
|
See Also