摘要: 数据类型进行运算的问题以及常量优化机制 表达式中存在的类型 表达式值的类型 double double 反之存在float float 再反之存在long long 其他情况 int 案例 package com.ujiuye.day03; public class Demo4 { public static void main(Stri 阅读全文
posted @ 2021-12-11 14:52 Indigo。 阅读(33) 评论(0) 推荐(0)
摘要: 随便写写。。。。 没有内容,随便写写,随便记录。 好好学习,好好生活! 阅读全文
posted @ 2021-12-11 11:29 Indigo。 阅读(9) 评论(0) 推荐(0)
摘要: 关于浮点数精度的一些问题 1.浮点数在底层的存储问题 上代码! int i = 2147483647; float f = 2147483647F; double d = 2147483647; System.out.println(i);//2147483647 System.out.println(f);//2.1474 阅读全文
posted @ 2021-12-11 11:15 Indigo。 阅读(76) 评论(0) 推荐(0)