[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Format by Specification - one digit after the decimal returns incorrect
From: |
Martin Michel |
Subject: |
Format by Specification - one digit after the decimal returns incorrect result |
Date: |
Tue, 27 Sep 2022 20:51:57 +0200 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
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
- Format by Specification - one digit after the decimal returns incorrect result,
Martin Michel <=