Table of Contents

Method CreateTruncating

Namespace
Zyl.VectorTraits.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.

public static ExInt128 CreateTruncating<TOther>(TOther value) where TOther : INumberBase<TOther>

Parameters

value TOther

The value which is used to create the instance of TSelf.

Returns

ExInt128

An instance of TSelf created from value, truncating if value falls outside the representable range of TSelf.

Type Parameters

TOther

The type of value.

Exceptions

NotSupportedException

TOther is not supported.