iReports - convert decimal to a fraction

0

Is there a way in Jasper iReports that I can have a decimal value display as a fraction?  Thus show 9.750 as 9 3/4?  Is there a conversion?

Is there a custom format I can use?  Is there a way I can get the decimal value and pass it to an excel .csv to get the fraction value? 

Do you have examples of this?

Thank you.

Jim Rubino

Tension Corporation

jrubino's picture
Joined: Oct 24 2018 - 6:47am
Last seen: 3 months 16 hours ago

2 Answers:

0

I don't think there's a out of the box solution. You'll need to write a scriptlet to do that.

hozawa's picture
42167
Joined: Apr 24 2010 - 4:31pm
Last seen: 5 hours 16 min ago
0

Hozawa - I have never written a sciprlet before, not sure what to do there.  I guess I will have to research that.

Thank you.

jrubino's picture
Joined: Oct 24 2018 - 6:47am
Last seen: 3 months 16 hours ago
Feedback
randomness