Fabs - script and chart function
Last updated: 9/11/2025
Fabs() returns the absolute value of x. The result is a positive number.
Syntax:
fabs(x)
Return data type: numeric
Examples and results:
| Examples |
Results |
|
fabs( 2.4
)
|
Returns 2.4 |
| fabs( -3.8
)
|
Returns 3.8 |