Skip to main content

Fabs

Fabs() returns the absolute value of x. The result is a positive number.

Syntax:  

fabs(x)

Return data type: numeric

Examples and results:  

  • fabs( 2.4 ): returns 2.4
  • fabs( -3.8 ): returns 3.8