convert imaginary () to number

From PenguinMod Wiki (Official)
Convert imaginary () to number
Jump to navigation Jump to search

convert imaginary () to number is a reporter block in Extra Mathematics that reports the imaginary part of a complex number (ex. 1 + 2i [which would be {"real":1,"imaginary":2}] would report 2).

Workaround

This block can be worked around by reporting the imaginary key of the number:

define convert imaginary (im) to number
return (get [imaginary] from (im)::#0fbd8c)::custom cap

The convert imaginary () to number block would be used where the actual block is used.

See also