double

The $\lstinline{double}$ data type is a double-precision 64-bit floating-point. It should never be used for precise values such as currency. Default value is 0.0 (0.0d).


\begin{lstlisting}
class DoubleExample {
public static void main(String[] args) {
\par
double number = -42.3;
System.out.println(number);
}
}
\end{lstlisting}