fixed order of operators
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352522 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fd71ea023c
commit
a327fa328d
@ -118,9 +118,10 @@ public class PowerPtg
|
|||||||
{
|
{
|
||||||
StringBuffer buffer = new StringBuffer();
|
StringBuffer buffer = new StringBuffer();
|
||||||
|
|
||||||
buffer.append(operands[ 1 ].toFormulaString());
|
|
||||||
buffer.append("^");
|
|
||||||
buffer.append(operands[ 0 ].toFormulaString());
|
buffer.append(operands[ 0 ].toFormulaString());
|
||||||
|
buffer.append("^");
|
||||||
|
buffer.append(operands[ 1 ].toFormulaString());
|
||||||
|
|
||||||
return buffer.toString();
|
return buffer.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -128,9 +129,10 @@ public class PowerPtg
|
|||||||
public String toFormulaString(String[] operands) {
|
public String toFormulaString(String[] operands) {
|
||||||
StringBuffer buffer = new StringBuffer();
|
StringBuffer buffer = new StringBuffer();
|
||||||
|
|
||||||
buffer.append(operands[ 1 ]);
|
|
||||||
buffer.append("^");
|
|
||||||
buffer.append(operands[ 0 ]);
|
buffer.append(operands[ 0 ]);
|
||||||
|
buffer.append("^");
|
||||||
|
buffer.append(operands[ 1 ]);
|
||||||
return buffer.toString();
|
return buffer.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user