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