The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
absolute value
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
absolute value
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
08-26-2008
spirtle
Registered User
Join Date: Jun 2008
Location: Scotland
Posts: 150
For the absolute value (and one decimal place), you would also use
Perl
's
abs
function, e.g.:
Code:
perl
-e 'printf "%.1f\n", abs(15232/1024)'
spirtle
View Public Profile
Find all posts by spirtle
Find spirtle's past nominations received
Find spirtle's present nominations given