Enhanced C#
Language of your choice: library documentation

Documentation moved to ecsharp.net

GitHub doesn't support HTTP redirects, so you'll be redirected in 3 seconds.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
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.MathU Loyc.Math.MathU16 Loyc.Math.MathU8 Loyc.Math.MathUL Loyc.Math.MathI Loyc.Math.MathI16 Loyc.Math.MathI8 Loyc.Math.MathL 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)