Int, Float, and Bool
Work with Mojo's numeric and boolean types.
Values Have Types
Every value belongs to a type that says what it is and what you can do with it. Three core types start you off.
Int for Whole Numbers
An Int holds whole numbers like counts and indexes, with no fractional part at all.
var count = 42All lessons in this course
- Declaring Values with var
- Int, Float, and Bool
- Strings and Text
- Type Annotations That Help