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

Input parameter rounding


pkhalwadekar

Recommended Posts

I provide an input parameter of 1.5561 to a report and it rounds it to 1.556 using Big Decimal as the class type. I want  the input parameter to always be upto 4 places. This input value is further used in an SQL query and since it considers 1.556, the output of the report is wrong.

Please help!!

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

This is just a limitation on parameter scale in Studio preview UI. When running this report from JasperReport Server or from your application using JaspeReports library, you should be able to provide input numeric value with the scale as you wish, providing your MSSQL colume scale is the same to have the correct query selection.

Link to comment
Share on other sites

  • 1 year later...

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