dmolony-DiskBrowser/src/com/bytezone/diskbrowser/visicalc/Int.java

22 lines
814 B
Java

package com.bytezone.diskbrowser.visicalc;
// -----------------------------------------------------------------------------------//
class Int extends ValueFunction
// -----------------------------------------------------------------------------------//
{
// ---------------------------------------------------------------------------------//
Int (Cell cell, String text)
// ---------------------------------------------------------------------------------//
{
super (cell, text);
assert text.startsWith ("@INT(") : text;
}
// ---------------------------------------------------------------------------------//
@Override
public double calculateValue ()
// ---------------------------------------------------------------------------------//
{
return (int) source.getDouble ();
}
}