Ler em inglês

Compartilhar via


Double.CreateTruncating<TOther>(TOther) Método

Definição

Cria uma instância do tipo atual de um valor, truncando todos os valores que ficam fora do intervalo representável do tipo atual.

C#
public static double CreateTruncating<TOther>(TOther value) where TOther : System.Numerics.INumberBase<TOther>;

Parâmetros de tipo

TOther

O tipo de value.

Parâmetros

value
TOther

O valor usado para criar a instância de TSelf.

Retornos

Uma instância de TSelf criada com base valueem , truncando se value estiver fora do intervalo representável de TSelf.

Implementações

Aplica-se a

Produto Versões
.NET 7, 8, 9, 10