`
85977328
  • 浏览: 1871019 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

commons-math-2.1数学运算小工具

 
阅读更多
这个工具比较简单,因此不多介绍。直接看段代码吧。

package test;

import org.apache.commons.math.util.MathUtils;

public class TestMath {

    public static void main(String[] args) {
        System.out.println(20.0d / 3.0d);
        // 保留3位小数,四舍五入
        System.out.println(MathUtils.round(20.0d / 3.0d, 3));
        System.out.println(MathUtils.round(200.0d / 3.0d, 3));
    }
}
/*
6.666666666666667
6.667
66.667
*/
分享到:
评论

相关推荐

    commons-math3-3.5-API文档-中文版.zip

    赠送jar包:commons-math3-3.5.jar; 赠送原API文档:commons-math3-3.5-javadoc.jar; 赠送源代码:commons-math3-3.5-sources.jar; 赠送Maven依赖信息文件:commons-math3-3.5.pom; 包含翻译后的API文档:...

    commons-math3-3.6.1-API文档-中英对照版.zip

    赠送jar包:commons-math3-3.6.1.jar; 赠送原API文档:commons-math3-3.6.1-javadoc.jar; 赠送源代码:commons-math3-3.6.1-sources.jar; 赠送Maven依赖信息文件:commons-math3-3.6.1.pom; 包含翻译后的API文档...

    commons-math3-3.6.1-API文档-中文版.zip

    赠送jar包:commons-math3-3.6.1.jar; 赠送原API文档:commons-math3-3.6.1-javadoc.jar; 赠送源代码:commons-math3-3.6.1-sources.jar; 赠送Maven依赖信息文件:commons-math3-3.6.1.pom; 包含翻译后的API文档...

    commons-vfs2-2.1源码

    commons-vfs2-2.1-sources.jar

    commons-math-2.2-API文档-中文版.zip

    赠送jar包:commons-math-2.2.jar; 赠送原API文档:commons-math-2.2-javadoc.jar; 赠送源代码:commons-math-2.2-sources.jar; 赠送Maven依赖信息文件:commons-math-2.2.pom; 包含翻译后的API文档:commons-...

    commons-math3-3.1.1-API文档-中英对照版.zip

    赠送jar包:commons-math3-3.1.1.jar; 赠送原API文档:commons-math3-3.1.1-javadoc.jar; 赠送源代码:commons-math3-3.1.1-sources.jar; 赠送Maven依赖信息文件:commons-math3-3.1.1.pom; 包含翻译后的API文档...

    commons-dbcp2-2.1.jar

    DBCP数据库连接池所需jar包commons-dbcp2-2.1.jar

    commons-math-2.2-API文档-中英对照版.zip

    赠送jar包:commons-math-2.2.jar; 赠送原API文档:commons-math-2.2-javadoc.jar; 赠送源代码:commons-math-2.2-sources.jar; 赠送Maven依赖信息文件:commons-math-2.2.pom; 包含翻译后的API文档:commons-...

    commons-io-2.1.jar

    commons-io-2.1.jar

    commons-digester-2.1.jar

    此为官网版本的commons-digester-2.1.jar maven中下载的commons-digester-2.1.jar无法使用

    commons-math3-3.4.1-API文档-中文版.zip

    赠送jar包:commons-math3-3.4.1.jar; 赠送原API文档:commons-math3-3.4.1-javadoc.jar; 赠送源代码:commons-math3-3.4.1-sources.jar; 赠送Maven依赖信息文件:commons-math3-3.4.1.pom; 包含翻译后的API文档...

    commons-math3-3.6.1-API文档中文版

    apache-commons-math3是java的一种科学计算类库,实现科学计算功能的类库其他语言如python、scala都有很多而且很容易找到资料,java可能是由于这方面的需求不多,所以相关的资料较少,详细的使用还是需要自己去研究...

    org.apache.commons.commons-math3:3.6.1

    org.apache.commons.commons-math3:3.6.1

    commons-math3-3.6.zip

    commons-math3-3.6.1-bin 包括commons-math3-3.6.1.jar等

    commons-math 3.6.1.jar

    缺少这个jar包的或者缺少commons-math2.2.jar的小伙伴们可以来用这个jar包啦

    myql_dpcp2所有jar包 commons-pool2-2.4.2 commons-dbcp2-2.1

    包含四个jar包commons-logging-1.2 commons-pool2-2.4.2 commons-dbcp2-2.1 mysql-connector-java-5.1.43-bin

    commons-math3-3.4.1-API文档-中英对照版.zip

    赠送jar包:commons-math3-3.4.1.jar; 赠送原API文档:commons-math3-3.4.1-javadoc.jar; 赠送源代码:commons-math3-3.4.1-sources.jar; 赠送Maven依赖信息文件:commons-math3-3.4.1.pom; 包含翻译后的API文档...

    commons-math3-3.1.1.jar中文-英文对照文档.zip

    commons-math3-***.jar中文-英文对照文档.zip,java,commons-math3-***.jar,org.apache.commons,commons-math3,***,org.apache.commons.math3,jar包,Maven,第三方jar包,组件,开源组件,第三方组件,Gradle,apache,...

    commons-math3-3.6.1-API文档-中文版.rar

    commons-math3-3.6.1-API文档-中文版.rar commons-math3-3.6.1-API文档-中文版.rar commons-math3-3.6.1-API文档-中文版.rar commons-math3-3.6.1-API文档-中文版.rar commons-math3-3.6.1-API文档-中文版.rar ...

Global site tag (gtag.js) - Google Analytics