The UNIX and Linux Forums  


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




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
Indalecio Indalecio is offline
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