FloatType<SELF, FLOATING, A> Class

FloatType - inspired by Haskell's 'newtype' keyword. This is setup for floating point numeric types,and expects a Floating<A> class-instance as an argument (TFloat, TDouble, TDecimal, etc.)

https://wiki.haskell.org/Newtype

Derive type from this one to get: Equatable, Comparable, Appendable, Foldable, Functor, Iterable: strongly typed values.

For example:

class Metres : FloatType<Metres, TDouble, double> { public Metres(double x) : base(x) {} }


Will not accept null values

DECLARATION
[Serializable]
public abstract class FloatType<SELF, FLOATING, A> : FloatType<SELF, FLOATING, A, True<A>>
NAMESPACE
LanguageExt

Constructors

FloatType(A)
SUMMARY

Constructor

PARAMETERS
value
A
Value to bind
DECLARATION
public ctor FloatType(A value)
EXCEPTIONS
ArgumentNullException
Null values are not accepted