Skip to content

Instantly share code, notes, and snippets.

@osmszk
Last active August 16, 2016 03:44
Show Gist options
  • Save osmszk/a196eac488fee3d2253a4c08442825ae to your computer and use it in GitHub Desktop.
Save osmszk/a196eac488fee3d2253a4c08442825ae to your computer and use it in GitHub Desktop.
func printIntMaxValue() {
let maxInt16 = Int16.max
let maxInt32 = Int32.max
let maxInt64 = Int64.max
let maxUInt16 = UInt16.max
let maxUInt32 = UInt32.max
let maxUInt64 = UInt64.max
let maxInt = Int.max
Log.d("maxInt16 \(maxInt16)")
Log.d("maxInt32 \(maxInt32)")
Log.d("maxInt64 \(maxInt64)")
Log.d("maxUInt16 \(maxUInt16)")
Log.d("maxUInt32 \(maxUInt32)")
Log.d("maxUInt64 \(maxUInt64)")
Log.d("maxInt \(maxInt)")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment