Jump to content
Changes to the Jaspersoft community edition download ×

maybe bug for bigdecimal field


Recommended Posts

By: petershen - pshen

maybe bug for bigdecimal field

2006-07-07 00:19

Hi,

I have a problem here, in my report, I have some number data, and I use BigDecimal type.

for some data, (not often), in the database, the number is 1.7 while the report shows me 1.6999999.

I tried jasperreports0.5.3 and also the lastest one: version 1.2.4, the problem is the same.

 

anyone has the same problem and any solution for that?

 

I defined the field in jasperreports like this:

$F{fieldname}==null?new BigDecimal(0):$F{fieldname} and I do not use any pattern.

 

thank you for any help!

Peter

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...