The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




Thread: absolute value
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 08-26-2008
dr46014 dr46014 is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 95
absolute value

is there any function in unix which will convert a integer to absolute value with a single decimal point.

suppose x=15232
y=x/1024=14.875

i want y to be 14.8

Similarly if y=6.29452 it should come as 6.3