Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Last active July 2, 2019 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/a194b21a8b3d6524c8d4ab7eee0a5b0d to your computer and use it in GitHub Desktop.
Save parzibyte/a194b21a8b3d6524c8d4ab7eee0a5b0d to your computer and use it in GitHub Desktop.
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