Forums Register Login

Showing Long Numbers

+Pie Number of slices to send: Send
Hi.

I have a number which is of type double:

6.486652063550125E-4

I would like to know how I can print this so that the E-4 is removed and the full number is shown.

Thanks
+Pie Number of slices to send: Send
Use String.format(...) or class java.text.DecimalFormat to format the number the way you like. You can lookup the details of how to use these in the API documentation.
Climb the rope! CLIMB THE ROPE! You too tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 719 times.
Similar Threads
Can someone fix me?
pulling my hair out
Regarding Encapsulation
2d array
Using one "actionPerformed" by class or one by component ?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 08:20:42.