Esta função retorna o valor negativo de um número, ou seja, o seu valor com sinal (sempre negativo).
Nome: ToNegative Copiado!
Aliases: Neg Copiado!
Parâmetros
Seção intitulada “Parâmetros”Representa um número de ponto flutuante de precisão dupla (15-16 dígitos). | value; | // o valor a ser convertido. |
Exemplos
Seção intitulada “Exemplos”//Exemplo padrão:
ToNegative[value]
//Usando aliases:
Neg[value]
//Outros exemplos
ToNegative[10] // Is -10
ToNegative[Close[0]-Open[0]] // Result of the calculation "close [0] -Open [0]" will be negative even when "Open" is smaller.