How to Create a Double Type in Java


In this example we will show the method to create a double type in Java.

Source Code

package com.beginner.examples;

public class DoubleType {
  public static void main(String[] args) {
    double num = 11.53d; // double
    System.out.println(num);  
  }
}

Output:

11.53
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments