iReports - convert decimal to a fraction
Posted on February 6, 2019 at 9:21am
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?
Posted on February 6, 2019 at 2:06pm
I don't think there's a out of the box solution. You'll need to write a scriptlet to do that.
Posted on February 11, 2019 at 6:37am
Hozawa - I have never written a sciprlet before, not sure what to do there. I guess I will have to research that.