Jump to content
We've recently updated our Privacy Statement, available here ×

sum of variables


ktrinad

Recommended Posts

By: Fco Antonio - jofranco

sum of variables

2003-07-11 14:28

 

Hi:

 

As I make the sum of two variables?

 

 

 

 

 

 

By: Giulio Toffoli - gt78

RE: sum of variables

2003-07-11 15:22

 

new Double( $V{var1}.doubleValue() + $V{var2}.doubleValue() )

 

I have assumed that your vars was Double...

 

Giulio

Link to comment
Share on other sites

  • 3 years later...
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

ktrinad
Wrote:

By: Fco Antonio - jofranco
sum of variables
2003-07-11 14:28

Hi:

As I make the sum of two variables?






By: Giulio Toffoli - gt78
RE: sum of variables
2003-07-11 15:22

new Double( $V{var1}.doubleValue() + $V{var2}.doubleValue() )

I have assumed that your vars was Double...

Giulio
Code:
I have to make the sum of a parameter that is integer with a defalut variabile (Pages).I have defined the parameter as integer and according on the example upstair I did :new Integer($P{PAGIN}.intValue()+$V{PAGE_NUMBER}.intValue())he said me "Can not cast from int to Integer" the default value of $P{PAGIN} The default value is 100. I tried both with 100 and "100" and I have the same result.Please help me.Bye
Link to comment
Share on other sites

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