Fixed a bug converting numbers. All numbers are treated as floating points and integers are not used
This commit is contained in:
parent
6735cbc7ce
commit
1ced0e217a
2 changed files with 4 additions and 4 deletions
|
@ -87,7 +87,7 @@ public class OperandLookup implements SymbolLookup {
|
|||
idToString = new HashMap();
|
||||
addEntry("CELL_REFERENCE", TokenConstants.TREF);
|
||||
addEntry("CELL_AREA_REFERENCE", TokenConstants.TAREA);
|
||||
addEntry("INTEGER", TokenConstants.TINT);
|
||||
addEntry("INTEGER", TokenConstants.TNUM);
|
||||
addEntry("NUMBER", TokenConstants.TNUM);
|
||||
}
|
||||
|
||||
|
|
|
@ -115,8 +115,8 @@ public class TokenEncoder {
|
|||
case TokenConstants.TAREA :
|
||||
tmpByteArray = AreaRefEncoder(t);
|
||||
break;
|
||||
case TokenConstants.TINT :
|
||||
tmpByteArray = IntEncoder(t);
|
||||
case TokenConstants.TNUM :
|
||||
tmpByteArray = NumEncoder(t);
|
||||
break;
|
||||
default :
|
||||
Debug.log(Debug.ERROR, "Encoder found unrecognized Token");
|
||||
|
@ -156,7 +156,7 @@ public class TokenEncoder {
|
|||
* @param t <code>Token</code> to be encoded
|
||||
* @return A <code>Vector</code> of pexcel <code>Byte</code>
|
||||
*/
|
||||
private Vector IntEncoder(Token t) {
|
||||
private Vector NumEncoder(Token t) {
|
||||
|
||||
Vector tmpByteArray = new Vector();
|
||||
|
||||
|
|
Loading…
Reference in a new issue