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