[#12356] - java.lang.Double formating bug

Category:
Bug report
Priority:
Normal
Status:
Feedback Requested
Project: Severity:
Minor
Resolution:
Fixed
Component: Reproducibility:
Always
Assigned to:
0

java.lang.Double value formatting bug:
* Field Type: java.lang.Double
* Pattern: #,##0.00#
* Value from JSON Data Source: 13

Displayed velue: 13.0
Expectation: 13.00

v6.10
arnold.somogyi's picture
Joined: Nov 27 2019 - 3:27pm
Last seen: 1 year 3 months ago

4 Comments:

#1

Where did you set the pattern? In the data adapter/data source or for the text element where the value is displayed?

#2

i have same problem too
have some variables ($V{}), do some calculations in textfield

pattern set as style - not work
pattern set in field prop - work

and have one more problem
if i divide one variable or parameter i don't get double value in textfield,i get only integer (and mask from style don't work too)
for double value i need make double (parse or valueOf) at least one parameter

very need this functional (from style - less template)

#3

my problem solve with rollback Jasper Studio from 6.13-6.14 to 6.12.2
all works good ... look at other my bug report with Cross Tab (problem in Jasper Studio >= 6.13)

#4
  • Priority:High» Normal
  • Resolution:Open» Fixed
  • Status:New» Feedback Requested

JSS 6.16 - all fixed

Feedback
randomness