View Javadoc
1 package edu.psu.geovista.app.spreadsheet.functions; 2 3 import edu.psu.geovista.app.spreadsheet.formula.Node; 4 import edu.psu.geovista.app.spreadsheet.exception.ParserException; 5 import edu.psu.geovista.app.spreadsheet.exception.NoReferenceException; 6 7 /* 8 * Description: 9 * Date: Apr 1, 2003 10 * Time: 9:40:19 PM 11 * @author Jin Chen 12 */ 13 14 public class FunctionInt extends FunctionSP { 15 16 protected Number doFun(Node node)throws ParserException,NoReferenceException { 17 return new Float((int)getSingleParameter(node)); 18 } 19 20 public String getUsage() { 21 return "INT(value)"; 22 } 23 24 public String getDescription() { 25 return "Returns the integer part of a number."; 26 } 27 }

This page was automatically generated by Maven