![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
基础
lm吹梦到西洲
这个作者很懒,什么都没留下…
展开
-
Math.round(),Math.ceil(),Math.floor()的区别
1.Math.round():根据“round”的字面意思“附近、周围”,可以猜测该函数是求一个附近的整数,看下面几个例子就明白。小数点后第一位<5正数:Math.round(11.46)=11负数:Math.round(-11.46)=-11 小数点后第一位>5正数:Math.round(11.68)=12负数:Math.round(-11.68)=-12 小数点后第一位=5正数:M...转载 2018-02-15 19:39:47 · 168 阅读 · 0 评论 -
求给定日期的后一日期【java】
import java.util.Scanner; /** * 给定一个日期,求后一天的日期 * * @author lm吹梦到西洲 * @date 2018/5/6 * */ public class NextDate { int year, month, day; public void getDay(int year, int month, int day) { t...原创 2018-05-06 14:32:14 · 327 阅读 · 0 评论