2011 Khronos Group
abs 3G
abs return the absolute value of the parameter

## Declaration

genType `abs` genType x genIType `abs` genIType x genDType `abs` genDType x

## Parameters

x

  Specify the value of which to return the absolute.

## Description

`abs` returns the absolute value of x.

## Version Support

#VARTABLECOLS#
#FUNCTABLEHEADER#
abs (genType)#newin11#
abs (genIType)#newin13#
abs (genDType)#newin41#

## See Also

sign

## Copyright

Copyright 2011 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.