|
There are several ways to format the values of float and doubles for display using java classes. For example DecimalFormat
If you read your text you should see that double has a larger range than float. But your problem is displaying the value, so you need to format it to what you want to see.
|