Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个来自数据库的值为 -0.01,但我已将变量定义为浮点类型 0f。
它仅将其转换为“0”。
是否可以按原样定义值(通过从 0f 更改为其他浮点格式)?
(支持的系统是groovy 1.5.6)
我已经使用大十进制实现了,现在看起来还可以。