The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Annoying rounding issue in awk
.
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
:
Annoying rounding issue in awk
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
1
(
permalink
)
08-26-2008
Indalecio
Registered User
Join Date: Sep 2006
Location: Sweden
Posts: 59
Annoying rounding issue in awk
Hello
I am getting this very annoying issue in awk:
Code:
awk '{a=12825;b=a*1.25; print b}' test 16031.2
Thing is the multiplication result is wrong... Result should be 16031.25.
I think the issue only happens on bigger numbers.
What can I do to get passed this?
Thanks by advance
Indalecio
View Public Profile
Find all posts by Indalecio
Find Indalecio's past nominations received
Find Indalecio's present nominations given