You cannot "increase the precision" of float and double. However, your most likely don't really mean that you want to increase the precision - you just want to know how to print a float or double with more decimal digits. You can use class DecimalFormat to format numbers with the desired number of digits, or use printf(...) with an appropriate conversion
pattern: