-
-
Save parzibyte/a194b21a8b3d6524c8d4ab7eee0a5b0d to your computer and use it in GitHub Desktop.
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
var miByte : Byte = 127 | |
var miInt : Int = miByte.toInt() | |
miInt += 500 | |
println(miInt) | |
var miFloat = 800.6f | |
var otroByte : Byte = miFloat.toByte() | |
println(otroByte) | |
// Todas las funciones: | |
println(otroByte.toByte()) | |
println(otroByte.toShort()) | |
println(otroByte.toInt()) | |
println(otroByte.toFloat()) | |
println(otroByte.toDouble()) | |
println(otroByte.toLong()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment