The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Rounding problem
.
User Name
Remember Me?
Password
google site
Forums
Register
Blog
Man Pages
Forum Rules
Links
Albums
FAQ
Users
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Rounding problem
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
01-17-2007
Perderabo
Unix Daemon
Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,150
Try awk:
$ echo .02199 | awk '{printf "%.2f \n", $1*100; }'
2.20
Perderabo
View Public Profile
Find all posts by Perderabo