i
ErrorsCollection

i

Synthesised documentation from language/terms type/Complex

From language/terms

See Original text in context

Returns the imaginary unit (for Complex numbers).

From type/Complex

See Original text in context

Adding a trailing i to a number literal makes it a Complex, for example:

say 2i;     # same as Complex.new(0, 2); 
say 1-2e3i; # same as Complex.new(1, -2e3);