Course of Raku / Essentials

Numbers

Let us talk about numbers. We already used them a bit in the previous sections and exercises, but there’s still something to talk about. Of course, some aspects of using numbers in Raku are trivial and you don’t need any explanations or instructions. So, let us focus on what makes numbers special in Raku.

Explore the following topics to get the idea of the most important differences in how Raku treat numbers compared to other languages.

Exercises

This section contains 7 exercises. Examine all the topics of this section before going to the coding practice.

  1. Apple sharing
  2. Sum of numbers
  3. Class desks
  4. Number of tens
  5. The value of π
  6. The last digit
  7. Sum of numbers from 1 to 100

Course navigation

Strings / String length   |   Integer numbers

Translations of this page: EnglishDeutschEspañolItalianoLatviešuNederlandsБългарскиРусскийУкраїнська