Try Perl6 Beta
Some Arithmetic

Perl6 recognizes numbers and various math operators.

Try some math.

  • 13 + 4
  • 7 - 3
  • 19 / 3
  • 2 * pi or 2 * π
  • 1/2 * tau or 1/2 * τ
  • 79**9 or 79⁹

Notice that you can use unicode in your code as well in strings.
Perl6 understands the characters for Pi and Tau!

And yes, for some reason it also understands unicode superscript exponentiation.

When you're finished experimenting, type next to move on the next lesson.

Terminal