Hour of Code: Code with Mary

Part 2: Sayin' Stuff

Number Varibles

Number Variables

Another type of variable often used in programming is a real (or decimal) number. In Quorum to create this type of variable we use the keyword number.

A number variable holds numeric values that can include decimal places such as 8.3439 or 42.0 or even 19.

Unlike text variables, we never use double quotes when storing a number, we just type it.

Create a number variable with the following code: number pi = 3.14159 then move to the next slide.

Try it Yourself

Next Tutorial

In the next tutorial, we will discuss Hour of Code Part 3, which describes first steps in Quorum.