Get the absolute value : abs « System Functions « Perl






Get the absolute value

    

$s = -5;

print "The absolute value of $s = ", abs $s;

   
    
    
    
  

Related examples in the same category