Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

Java Floating-point Literals

class Main {
  public static void main(String[] args) {
    	
    double myDouble = 3.4;
    float myFloat = 3.4F;
 
    // 3.445*10^2
    double myDoubleScientific = 3.445e2;

    System.out.println(myDouble);  // prints 3.4
    System.out.println(myFloat);    // prints 3.4
    System.out.println(myDoubleScientific);   // prints 344.5
  }
}
Comment

PREVIOUS NEXT
Code Example
Java :: how to clear scoreboard with offline players java 
Java :: xml cant change button background 
Java :: variable for java 
Java :: switch expression 
Java :: laravel Please update to at least Node v12.14 
Java :: Java (sun-jdk-1.8.0_51) sample 
Java :: paysimple 
Java :: masquer saisie mot de passe java console 
Java :: Java Creating LinkedHashMap from Other Maps 
Java :: Give the output of the following code: int a = 10; int b = 20; String s = Integer.toString(a); String t = Integer.toString(b); System.out.println((s+t)); 
Java :: RNGestureHandlerButtonViewManager.java uses or overrides a deprecated API 
Java :: add method in java 
Java :: how to get the last vowel of a string in java 
Java :: instance field java 
Java :: java inetaddress workaround how to get localhost secure 
Java :: run jar with logback config file 
Java :: Second Activity not opening problem 
Java :: Algorithms - decision 
Java :: ferrari class in java 
Java :: single line comment in java 
Java :: java 8 retrieve all list from object into single list and ignore duplicates 
Java :: aws lambda upload file to s3 java 
Java :: Uri/beecrowd problem no 1118 solution in Java 
Java :: getter and setter in java 
Java :: Caused by: java.lang.ClassNotFoundException: 
Java :: comparable 
Java :: instanceof operator java 
Java :: java @override 
Java :: javadoc link 
Java :: for var i = 0 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =