In Operators§

See primary documentation in context for prefix +

multi prefix:<+>(Any --> Numeric:D)

Numeric context operator.

Coerces the argument to Numeric by calling the Numeric method on it.

In Operators§

See primary documentation in context for infix +

multi infix:<+>($a, $b --> Numeric:D)

Addition operator: Coerces both arguments to Numeric and adds them. From version 6.d it works also on Duration, DateTime and Real types.