Jump to content

How to divide Long variables (always null for me)?


rapthor

Recommended Posts

Hello,

I got a null when I try to divide a Long variable by a number, round it and assign it to another Long variable: New Long(Math.round(new Double($V{DATE_IN_MILLISECONDS}.longValue() / (60*60*1000*24))))

The result variable is also of type Long but when I compile and preview my report, I only see null. The referenced variable $V{DATE_IN_MILLISECONDS} is valid, as I see its value at preview.

Why is the expression null ?

Thanks in advance!



Post Edited by rapthor at 11/07/2009 15:12
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

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