
November 4th, 2012, 09:46 PM
|
|
Registered User
|
|
Join Date: Nov 2012
Posts: 1
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
|