Pular para o conteúdo

ToNegative

Esta função retorna o valor negativo de um número, ou seja, o seu valor com sinal (sempre negativo).

Parâmetros

value;

// o valor a ser convertido.

Exemplos

1//Default example: 
2ToNegative[value]
3
4//Using aliases: 
5Neg[value]
6
7//Other examples
8ToNegative[10] // Is -10
9ToNegative[Close[0]-Open[0]] // Result of the calculation "close [0] -Open [0]" will be negative even when "Open" is smaller.

Retornos

Em caso de sucesso:

Retorna o valor negativo.

Retorno:

Em caso de erro:

Retorna o valor padrão zero para o tipo double (0).

Retorno: