ISO/IEC 13751:2000 seems to give an implementation lots of flexibility here.

I'm honestly not sure how to interpret this. Section 15.2.2 says:

*Informal Description: Numeric output conversion converts numeric values
represented **as numbers—numeric quantities whose format is
implementation-defined—into the **same numeric quantities represented in
decimal notation as lists of characters.*


Then:

*Note: Any imaginary-part of the numeric input to Numeric-Output-Conversion
is simply ignored; **only the real-part of a complex-number is used.*


Regards,
Elias


On 20 May 2014 12:24, Frederick H. Pitts <fred.pi...@comcast.net> wrote:

> Juergen,
>
>         Under "Display of Complex Numbers:" on page 13 of the "APL2
> Programming: Language reference", the document says:
>
>         "In J notation, the real or imaginary part is not displayed if it
> is
> less than the other by more than ⎕PP orders of magnitude (unless ⎕PP is
> at its maximum)".
>
>         In SVN 268, neither of the presented examples work.  The smaller
> magnitude part is not zeroed if its the real part or suppressed if its
> the imaginary part.
>
>         In addition, complex numbers entered in polar notation as
> described at
> the top page 12 do not display correctly per the description on page 13.
> 1D90 and 1R1.5707963267948965 should display as 0J1 assuming ⎕PP is less
> than maximum.  Currently the real part is displayed as some number times
> 10 to the -16 power, i.e. zero for all intents and purposes.
>
> Regards,
>
> Fred
> Retired Chemical Engineer
>
>
>

Reply via email to