Course of Raku / Essentials / More about types / Data type conversion / Exercises

True and False numbers

This is an exploratory assignment, which allows you to explore the features of Raku yourself.

Task

Write a program or use a REPL shell to find out, which numbers become False when they are converted to Boolean values.

Solution

See the solution

Course navigation

Converting types with prefix operators   |   Solution: True and False numbers

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