Quad.Create Truncating<TOther> Method
Creates an instance of the current type from a value, truncating any values that fall outside the representable range of the current type.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
An instance of TSelf created from value, truncating if value falls outside the representable range of TSelf.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public static Quad CreateTruncating<TOther>(
TOther value
)
where TOther : Object, INumberBase<TOther>
Parameters
- value TOther
- The value which is used to create the instance of TSelf.
Type Parameters
- TOther
- The type of value.
Return Value
QuadAn instance of TSelf created from value, truncating if value falls outside the representable range of TSelf.
Implements
INumberBase<TSelf>.CreateTruncating<TOther>(TOther)Exceptions
Not | TOther is not supported. |