Esta função retorna o valor absoluto de um número, ou seja, o seu valor sem sinal (sempre positivo).
Function
Section titled “Function” Name: ToPositive Copied!
Aliases: Pos 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:
ToPositive[value]
//Using aliases:
Pos[value]
//Other examples:
ToPositive[-10] // Is 10
ToPositive[Close[0]-Open[0]] // Result of the calculation "close [0] -Open [0]" will be positive even when "Open" is larger.