How to display a number with many decimal places? (Java)
Question
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?
Solution
Try the BigDecimal class.
http://download.oracle.com/javase/1,5.0/docs/api/java/math/BigDecimal.html
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow