Esta função retorna o valor negativo de um número, ou seja, o seu valor com sinal (sempre negativo).
Function
Section titled “Function” Name: ToNegative Copied!
Aliases: Neg Copied!
Parameters
Section titled “Parameters”Representa um número de ponto flutuante de precisão dupla (15-16 dígitos). | value; | // o valor a ser convertido. |
Examples
Section titled “Examples”//Default example:
ToNegative[value]
//Using aliases:
Neg[value]
//Other examples:
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.