Enhanced C#
Language of your choice: library documentation
|
Provides increment, decrement, and next/previous-representable- value operations. More...
Provides increment, decrement, and next/previous-representable- value operations.
T | A numeric type. |
Implementations may or may not detect overflow.
Public Member Functions | |
T | AddOne (T a) |
Returns a + 1. More... | |
T | SubOne (T a) |
Returns a - 1. More... | |
T | NextHigher (T a) |
Returns the next representable number higher than a. More... | |
T | NextLower (T a) |
Returns the next representable number lower than a. More... | |
T Loyc.Math.IIncrementer< T >.AddOne | ( | T | a | ) |
Returns a + 1.
Implemented in Loyc.Math.MathFL32, Loyc.Math.MathFL16, Loyc.Math.MathF23, Loyc.Math.MathF16, Loyc.Math.MathF8, Loyc.Math.MathD, Loyc.Math.MathF, Loyc.Math.MathUL, Loyc.Math.MathL, Loyc.Math.MathU, Loyc.Math.MathI, Loyc.Math.MathU16, Loyc.Math.MathI16, Loyc.Math.MathU8, and Loyc.Math.MathI8.
T Loyc.Math.IIncrementer< T >.NextHigher | ( | T | a | ) |
Returns the next representable number higher than a.
Implemented in Loyc.Math.MathFL32, Loyc.Math.MathFL16, Loyc.Math.MathF23, Loyc.Math.MathF16, Loyc.Math.MathF8, Loyc.Math.MathD, Loyc.Math.MathF, Loyc.Math.MathUL, Loyc.Math.MathL, Loyc.Math.MathU, Loyc.Math.MathI, Loyc.Math.MathU16, Loyc.Math.MathI16, Loyc.Math.MathU8, and Loyc.Math.MathI8.
T Loyc.Math.IIncrementer< T >.NextLower | ( | T | a | ) |
Returns the next representable number lower than a.
Implemented in Loyc.Math.MathFL32, Loyc.Math.MathFL16, Loyc.Math.MathF23, Loyc.Math.MathF16, Loyc.Math.MathF8, Loyc.Math.MathD, Loyc.Math.MathF, Loyc.Math.MathUL, Loyc.Math.MathL, Loyc.Math.MathU, Loyc.Math.MathI, Loyc.Math.MathU16, Loyc.Math.MathI16, Loyc.Math.MathU8, and Loyc.Math.MathI8.
T Loyc.Math.IIncrementer< T >.SubOne | ( | T | a | ) |
Returns a - 1.
Implemented in Loyc.Math.MathFL32, Loyc.Math.MathFL16, Loyc.Math.MathF23, Loyc.Math.MathF16, Loyc.Math.MathF8, Loyc.Math.MathD, Loyc.Math.MathF, Loyc.Math.MathUL, Loyc.Math.MathL, Loyc.Math.MathU, Loyc.Math.MathI, Loyc.Math.MathU16, Loyc.Math.MathI16, Loyc.Math.MathU8, and Loyc.Math.MathI8.