mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2024-06-27 23:29:37 +00:00
24 lines
447 B
Java
24 lines
447 B
Java
package com.bytezone.diskbrowser.visicalc;
|
|
|
|
public class Int extends Function
|
|
{
|
|
Expression source;
|
|
|
|
Int (Cell cell, String text)
|
|
{
|
|
super (cell, text);
|
|
|
|
assert text.startsWith ("@INT(") : text;
|
|
|
|
source = new Expression (parent, cell, functionText);
|
|
values.add (source);
|
|
}
|
|
|
|
@Override
|
|
public void calculate ()
|
|
{
|
|
source.calculate ();
|
|
value = (int) source.getValue ();
|
|
valueType = source.getValueType ();
|
|
}
|
|
} |