3

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?

Dylan Wheeler
  • 6,928
  • 14
  • 56
  • 80

1 Answers1

3

Try the BigDecimal class.

http://download.oracle.com/javase/1,5.0/docs/api/java/math/BigDecimal.html

AHungerArtist
  • 9,332
  • 17
  • 73
  • 109