When i write in my program
double pi = Math.PI;
This will give me a value of PI accurate to many decimal places, but what if i want to limit this number
lets say to 3 decimal places..
Is there such a method in Java?
(Im not talking here only about the value of Math.PI or Math.E, but about all double values that contain
many decimal places)


LinkBack URL
About LinkBacks
Reply With Quote