convert imaginary () to number

From PenguinMod Wiki (Official)
Revision as of 17:17, 7 September 2024 by MediansSC (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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