Syntax

abs VALUE
abs

Definition and Usage

Returns the absolute value of its argument. If pure interger value is passed then it will return it as it is but if a string is passed then it will return zero. If VALUE is omitted then it uses $_

Return Value

  • Returns the absolute value of its argument.

Example

Following is the piece of code
This will produce following result

What Do You Think on This ? Say Here