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.
我想知道是否有一种方法可以“作弊”并使用小数位数比 Java 中的双精度数多的数字,然后通过[Graphics Object].drawString(number, 10, 10);
[Graphics Object].drawString(number, 10, 10);
我可以这样做吗?
试试 BigDecimal 类。
http://download.oracle.com/javase/1,5.0/docs/api/java/math/BigDecimal.html