Jump to content
Changes to the Jaspersoft community edition download ×

The?operator?*?is?undefined?for?the?argument?


2005 IR Help

Recommended Posts

By: John - kickingbird

The?operator?*?is?undefined?for?the?argument?

2005-06-17 01:51

I declared two variables of type Java.lang.Double.

 

When I try to do this in Variable Express

 

$V{Profit} * 100

 

it gives me the "The?operator?*?is?undefined?for?the?argument?type(s)" error.

 

I have also tried

 

$V{Profit} * 100.00

$V{Profit} * (new Double(100.00))

 

I have tried Java 1.4.2 and now using Java 5.0.30.7

 

Please help!

 

 

 

 

 

By: John - kickingbird

RE: The?operator?*?is?undefined?for?the?argument?

2005-06-17 01:58

Oops..I mean "Variable Espression"

 

 

 

 

By: alanHardwick - alan314

RE: The operator * is undefined for the argum

2005-06-17 02:34

You need to convert to double (and then back to Double)

i.e.

new Double($V{profit}.doubleValue() * 100)

or something like that.

 

 

 

 

 

By: John - kickingbird

RE: The operator * is undefined for the argum

2005-06-18 03:27

Oh boy... it works! Thanks!

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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