real-part ( z -- x )
Factor handbook > The language > Numbers > Complex numbers

Prev:complex
Next:imaginary-part ( z -- y )


Vocabulary
math

Inputs and outputs
za number
xa real


Word description
Outputs the real part of a complex number. This acts as the identity on real numbers.

Examples
USING: math prettyprint ; C{ 1 2 } real-part .
1


Definition


Methods