How to display a number with many decimal places? (Java)
문제
I was wondering if there is a way to "cheat" and work with numbers with way more decimal places than a double in Java, and then display it via [Graphics Object].drawString(number, 10, 10);
Can I do this?
해결책
Try the BigDecimal class.
http://download.oracle.com/javase/1,5.0/docs/api/java/math/BigDecimal.html
제휴하지 않습니다 StackOverflow