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

Category:
Bug report
Priority:
High
Status:
New
Project: Severity:
Minor
Resolution:
Open
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: 7 months 2 weeks ago

2 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)

Feedback
randomness