Fixed a bug converting numbers. All numbers are treated as floating points and integers are not used

This commit is contained in:
Martin Maher 2002-10-10 12:12:08 +00:00
parent 6735cbc7ce
commit 1ced0e217a
2 changed files with 4 additions and 4 deletions

View file

@ -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);
}

View file

@ -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();