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 >

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)

Returns a + 1.

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

Returns the next representable number higher than a.

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

Returns the next representable number lower than a.

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

Returns a - 1.