Java Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingJava Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 4th, 2012, 09:46 PM
mahesh.nr mahesh.nr is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 1 mahesh.nr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 45 sec
Reputation Power: 0
Float variable not giving correct values

Hi All,

We have a custom application which will generate two payroll related text files displaying the float variable values.

Recently we moved our application from JVM 1.4 to 1.6.

Now we have an issue with the total amount that will be written in the footer of the payroll files. The amount mismatches with the actual amount when we calculate it manually. The difference ranges from 0.1 to 1.5 depending on the number of records in the file.

We tried to typecast the float variable to bigdecimal but no use and even we tried replacing all the float datatypes to bigdecimal.

Kindly suggest your input.

Regrads,
Mahesh.N.R

Reply With Quote
  #2  
Old December 6th, 2012, 11:41 PM
Jones21 Jones21 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 8 Jones21 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 42 sec
Reputation Power: 0
nice to meet you!




Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJava Development > Float variable not giving correct values


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

© 2003-2014 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap