Enhanced C#
Language of your choice: library documentation
Public Member Functions | List of all members
Loyc.Math.IIncrementer< T > Interface Template Reference

Provides increment, decrement, and next/previous-representable- value operations. More...


Source file:
Inheritance diagram for Loyc.Math.IIncrementer< T >:
Loyc.Math.IMath< T > Loyc.Math.ISignedMath< T > Loyc.Math.IUIntMath< T > Loyc.Math.IIntMath< T > Loyc.Math.IRationalMath< T > Loyc.Math.IFloatMath< T > Loyc.Math.MathF16 Loyc.Math.MathF23 Loyc.Math.MathF8 Loyc.Math.MathFL16 Loyc.Math.MathFL32

Remarks

Provides increment, decrement, and next/previous-representable- value operations.

Template Parameters
TA numeric type.

Implementations may or may not detect overflow.

Public Member Functions

AddOne (T a)
 Returns a + 1. More...
 
SubOne (T a)
 Returns a - 1. More...
 
NextHigher (T a)
 Returns the next representable number higher than a. More...
 
NextLower (T a)
 Returns the next representable number lower than a. More...
 

Member Function Documentation

T Loyc.Math.IIncrementer< T >.AddOne ( a)
T Loyc.Math.IIncrementer< T >.NextHigher ( a)

Returns the next representable number higher than a.

Implemented in Loyc.Math.MathFL32, Loyc.Math.MathFL16, Loyc.Math.MathF23, Loyc.Math.MathF16, and Loyc.Math.MathF8.

T Loyc.Math.IIncrementer< T >.NextLower ( a)

Returns the next representable number lower than a.

Implemented in Loyc.Math.MathFL32, Loyc.Math.MathFL16, Loyc.Math.MathF23, Loyc.Math.MathF16, and Loyc.Math.MathF8.

T Loyc.Math.IIncrementer< T >.SubOne ( a)