Method CreateTruncating
- Namespace
- Zyl.Vector
Traits .ExTypes
- Assembly
- VectorTraits.dll
CreateTruncating<TOther>(TOther)
Creates an instance of the current type from a value, truncating any values that fall outside the representable range of the current type.
Parameters
value
TOtherThe value which is used to create the instance of
TSelf
.
Returns
- Ex
UInt128 An instance of
TSelf
created fromvalue
, truncating ifvalue
falls outside the representable range ofTSelf
.
Type Parameters
TOther
The type of
value
.
Exceptions
- Not
Supported Exception TOther
is not supported.