How to convert String to Double in JasperStudio Reports?

0

I have a String variable that contains a formatted value, for example, R$ 1.234,56

Would JasperStudio convert this String to Double with the format looking like this: 1234.56?

rafaspara2017's picture
Joined: May 28 2021 - 10:27am
Last seen: 2 months 5 days ago

String.format("%.2f", d)

mbamania - 3 weeks 2 days ago

1 Answer:

0

Hi there,

You can try the following - java.lang.Double.valueOf($F{YourString})

luked's picture
102
Joined: Jun 7 2018 - 3:38pm
Last seen: 51 min 5 sec ago
Feedback