Quad.CreateSaturating<TOther> Method

Creates an instance of the current type from a value, saturating 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.4
C#
public static Quad CreateSaturating<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

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

Implements

INumberBase<TSelf>.CreateSaturating<TOther>(TOther)

Exceptions

NotSupportedExceptionTOther is not supported.

See Also