声明float类型

来源:互联网 发布:网络监控头安装 编辑:程序博客网 时间:2024/06/01 07:13

float f = 11.1123F; 在java中声明float类型,如果带有小数,必须在数值后面用‘f’或'F'标注,否则视为double类型。