Half.Sign(Half) Método

Definição

Calcula o sinal de um valor.

public:
 static int Sign(Half value) = System::Numerics::INumber<Half>::Sign;
public static int Sign (Half value);
static member Sign : Half -> int
Public Shared Function Sign (value As Half) As Integer

Parâmetros

value
Half

Retornos

Int32

Um valor positivo se value for positivo, Zero se value for zero e um valor negativo se value for negativo.

Implementações

Comentários

É recomendável que uma função retorne 1, 0e -1, respectivamente.

Aplica-se a