This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Decimal Points Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Decimal Points" Watch "Decimal Points" New topic

Decimal Points

Noorulain Khan

Joined: Jul 31, 2001
Posts: 28
Could anyone inform me
How to restrict the decimal points to 4
I get some number through random method
like 0.000000000000
made it 1.000000000000 by multiplying etc..
but how to restrict the decimal points like
Please help me.
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

Sounds like a job for...

GeeCON Prague 2014
subject: Decimal Points