⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 floor.java

📁 JAVA 数学程序库 提供常规的数值计算程序包
💻 JAVA
字号:
package jmathlib.toolbox.jmathlib.matrix;

import jmathlib.core.functions.ExternalElementWiseFunction;

public class floor extends ExternalElementWiseFunction
{
    
    public floor()
    {
        name = "floor";
    }
    
    /**Standard functions - rounds the value down  
    @param  double array
    @return the result as an OperandToken
    */
    public double[] evaluateValue(double[] arg)
    {
        double[] result = new double[2];

        result[REAL] = Math.floor(arg[REAL]);
        result[IMAG] = Math.floor(arg[IMAG]);
        
        return  result;                      
    }

}

/*
@GROUP
matrix
@SYNTAX
floor(value)
@DOC
Rounds the value of the first operand down to the nearest integer.
@EXAMPLES
floor(-5.5) = -6
floor(2.3)  = 2
@SEE
ceil, round
*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -