mirror of https://github.com/rusefi/RomRaider.git
Fixed set value casting decimal numbers to integer
git-svn-id: http://svn.3splooges.com/romraider-arch/trunk@50 d2e2e1cd-ba16-0410-be16-b7c4453c7c2d
This commit is contained in:
parent
6384609fce
commit
5fa6d71e7f
|
@ -206,7 +206,11 @@ public class DataCell extends JLabel implements MouseListener, Serializable {
|
|||
parser.initSymTab(); // clear the contents of the symbol table
|
||||
parser.addVariable("x", Double.parseDouble(input));
|
||||
parser.parseExpression(table.getScale().getByteExpression());
|
||||
this.setBinValue((int)Math.round(parser.getValue()));
|
||||
if (table.getStorageType() == Table.STORAGE_TYPE_FLOAT) {
|
||||
this.setBinValue(parser.getValue());
|
||||
} else {
|
||||
this.setBinValue((int)Math.round(parser.getValue()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue