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
#!/usr/bin/perl |
This will produce following result
Abs value of par1 is 10.25 |
No comments:
Post a Comment