Swift Int

Main Idea

A basic data type that holds a single whole number.


let score = 10

// ignores underscores, _, 
let reallyBig = 100_000_000

// Special Operations
counter = 5
counter += 5
counter *= 2
counter -= 10
counter /= 2

// isMultiple(of:)
120.isMultiple(of:3))

Notes mentioning this note


Here are all the notes in this garden, along with their links, visualized as a graph.