Last active
September 14, 2019 13:56
-
-
Save youngjinmo/c9498d280529e359fd8dec68342cf055 to your computer and use it in GitHub Desktop.
double형으로 형변환 하는 방법
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class toDouble { | |
public static void main(String[] args){ | |
int a = 66; | |
double b = 3.456; | |
String c = "90"; | |
char d = 'd'; | |
System.out.println("Integer to double : " + (double)a); | |
// Integer to double : 66.0 | |
System.out.println("DataType Check : "+(double)a==a); | |
// DataType Check : true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment