A SimpleFractionException is being thrown on what should be a very easy case to format: Format 123456.6 as a fraction with single digit numerator and denominator. It is expected to format as 123456 3/5 Instead, I get: org.apache.poi.ss.usermodel.FractionFormat$SimpleFractionException: Greater than overflow in loop 0.600000, 20615843021, 34359738368 at org.apache.poi.ss.usermodel.FractionFormat.calcFractionMaxDenom(FractionFormat.java:217) at org.apache.poi.ss.usermodel.FractionFormat.format(FractionFormat.java:133) at org.apache.poi.ss.usermodel.FractionFormat.format(FractionFormat.java:172) When looking at the code in FractionFormat, method calcFractionMaxDenom, I see that it is setting an overflow variable, of type long, to Integer.MAX_VALUE. In my test area, when I set the value to Long.MAX_VALUE, the function correctly returns the data I expect.
MATH-996 hasn't made it into MATH yet or here. Will apply that fix, and try to refactor out my previous patch...on my to do list, thanks to Nick for pointing it out earlier. Thank you for submitting this.
Fixed in r1514123. Thank you, again, for submitting this.