开发者社区 问答 正文

Math类的static int round(float a)方法的作用是什么?

Math类的static int round(float a)方法的作用是什么?

展开
收起
游客k7rjnht6hbtk6 2021-11-02 23:18:31 353 分享 版权
1 条回答
写回答
取消 提交回答
  • 将参数加上 1/2 后返回与参数最近的整数

    2021-11-02 23:18:43
    赞同 展开评论