Jump to content

problem with the absolute value abs()


Recommended Posts

By: Robert - robikf

problem with the absolute value abs()

2006-04-20 12:48

Does anybody know how to get an absolute value of the double in the jasperreport 1.2. It looks like there is the bug.

I tried to create a variable of the Double with the formula new Double(abs(1.00)).The error message that I am getting is:

The method abs(double) is undifined for the type ...

 

any ideas?

 

 

 

 

By: Sanjeev Saha - sanjeevsaha

RE: problem with the absolute value abs()

2006-04-20 12:57

Have you tried:

 

new Double(new BigDecimal(1.00d).abs().doubleValue())

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...