broken test

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893849 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2021-10-03 10:45:08 +00:00
parent bf37257193
commit e9270143aa

View File

@ -107,7 +107,7 @@ public class FractionFormat extends Format {
@SuppressWarnings("squid:S2111")
public String format(Number num) {
final BigDecimal doubleValue = BigDecimal.valueOf(num.doubleValue());
final BigDecimal doubleValue = new BigDecimal(num.doubleValue());
final boolean isNeg = doubleValue.compareTo(BigDecimal.ZERO) < 0;
@ -155,7 +155,7 @@ public class FractionFormat extends Format {
//now format the results
if (isNeg){
sb.append("-");
sb.append('-');
}
//if whole part has to go into the numerator