Problems with the pattern in iReport

Hello good afternoon
I have a problem using the pattern in iRepor, the one I am using is #, ###. ############ so that all decimals of the different quantities come out as 9.17, 765.9742 in that part No problem, the error is when the whole number is very large, it is printed in this way 624,876,889.095639944077 While the actual amount is 624,876,889.09564 I am new using iReport and, as much as I am looking for, I cannot find the solution to the problem I have, I appreciate it very much.

hector_10_corazon's picture
Joined: Aug 5 2019 - 11:03am
Last seen: 3 years 8 months ago
hector_10_corazon - 4 years 3 weeks ago

2 Answers:

The pattern is based on how numbers are formatted in Java, documented here:https://docs.oracle.com/javase/tutorial/i18n/format/decimalFormat.html

A format like 

"#,##0.####"

should work

swood_1's picture
9626
Joined: Nov 15 2012 - 10:47am
Last seen: 2 months 7 hours ago

Hello, good afternoon, first of all, thanks for your help, but I already tried the solution you offer me, but I still have the same error.

hector_10_corazon's picture
Joined: Aug 5 2019 - 11:03am
Last seen: 3 years 8 months ago
Feedback
randomness