mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
broken test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893849 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bf37257193
commit
e9270143aa
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user