Skip to content

Instantly share code, notes, and snippets.

@romyilano
Created November 2, 2025 04:30
Show Gist options
  • Select an option

  • Save romyilano/deb1e34b254ca2955cec796dd5ff51b3 to your computer and use it in GitHub Desktop.

Select an option

Save romyilano/deb1e34b254ca2955cec796dd5ff51b3 to your computer and use it in GitHub Desktop.
val anotherLong = 10L
println("$anotherLong is this")
// grabbing an unsigned integer
val unsignedInt: UInt = 0U
val unsignedLong = OUL
// 64 bit
val aDouble: Double = 5.5
// 32 bit float
val aFloat: FLoat = 5.5f
val inferredDouble = 5.5
val inferredFloat = 5.5f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment