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.