Created
May 1, 2017 12:32
-
-
Save d-date/e71302710272ac33b9115428d65cbd8c to your computer and use it in GitHub Desktop.
そういえば、Literalで浮動小数点書いたときはDoubleになるんですね #CodePiece #minna_de_swift
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
func something(value: Float) { | |
print("float") | |
} | |
func something(value: Double) { | |
print("double") | |
} | |
something(value: 0.1234) //double | |
something(value: 0.1234) //double |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment