convert real () to number

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

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

Workaround

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

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

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

See also