* — multiplication

Syntax and values

Behavior and details

The * operator multiplies two Numbers: 3 * 4 gives twelve. It does not repeat text or lists; use repeatList for a repeated list.

Multiplication has precedence, or priority, over addition. Pliro groups 2 + 3 * 4 as 2 + (3 * 4). Multiplication, division, and remainder have the same priority and group from left to right. Calculation order explains how parentheses change a group.

Example

# language: en
say 3 * 4
say((2 + 3) * 4)

Syntax and values · Built-ins · Programming guides