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

Provides methods for converting common numeric types to another numeric type "T". More...


Source file:
Inheritance diagram for Loyc.Math.IConvertTo< T >:
Loyc.Math.IComplexMath< 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 methods for converting common numeric types to another numeric type "T".

Template Parameters
TA numeric type

Methods for converting type T to standard numeric types would be redundant, because standard numeric types already implement IConvertible for this purpose. To use IConvertible in generic code, add IConvertible as a type constraint on the numeric type.

Public Member Functions

From (uint t)
 
From (int t)
 
From (ulong t)
 
From (long t)
 
From (double t)
 
Clip (uint t)
 
Clip (int t)
 
Clip (ulong t)
 
Clip (long t)
 
Clip (double t)