bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Format by Specification - one digit after the decimal returns incorr


From: Dr . Jürgen Sauermann
Subject: Re: Format by Specification - one digit after the decimal returns incorrect result
Date: Thu, 29 Sep 2022 13:48:56 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

Hi Martin,

thanks for reporting this. Fixed in *SVN 1591*.

Best Regards,
Jürgen


On 9/27/22 8:51 PM, Martin Michel wrote:
Hi all,

I observe a strange behavior when using the format operator for displaying 
numbers with one digit after the decimal.

Here is my case:

0 1⍕ ¯9.4962 ¯9.9863 ¯10.4764
¯9.5 ¯.0 ¯10.5

Why is the second item not printed as ¯10.0 ?
Have I misunderstood the Format by Specification operator or is it a bug?

Other cases work either correct or also questionable in case of the scientific 
format:

0 2⍕ ¯9.4962 ¯9.9863 ¯10.4764
¯9.50 ¯9.99 ¯10.48
0 ¯1⍕ ¯9.4962 ¯9.9863 ¯10.4764
¯10E0 ¯10E0 ¯1E1
0 ¯2⍕ ¯9.4962 ¯9.9863 ¯10.4764
¯9.5E0 ¯10E0 ¯1.1E1

Kind regards,
Martin






reply via email to

[Prev in Thread] Current Thread [Next in Thread]