Sujet : Re: 0 SET-ORDER why?
De : dxforth (at) *nospam* gmail.com (dxf)
Groupes : comp.lang.forthDate : 28. Jun 2024, 02:56:37
Autres entêtes
Organisation : Ausics - https://newsgroups.ausics.net
Message-ID : <667e1855$1@news.ausics.net>
References : 1 2 3 4 5 6
User-Agent : Mozilla Thunderbird
On 28/06/2024 8:10 am, Gerry Jackson wrote:
On 27/06/2024 04:19, dxf wrote:
No need to specify useless behaviours. u=0 in REPRESENT wasn't specified as
the TC couldn't imagine a use for it. Which was just as well as there was
a use for it the TC apparently overlooked.
What was this use of REPRESENT
Displaying single digit fractions to 0 decimal places e.g. 0.9 and 0.4
REPRESENT should handle this case but few do. An exception is:
VFX Forth 64 for Windows x64
© MicroProcessor Engineering Ltd, 1998-2023
0.9e pad 0 represent 2drop . pad 1 dump 1
0000:0000:01C2:EB00 31 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 1000000000000000
ok
0.4e pad 0 represent 2drop . pad 1 dump 1
0000:0000:01C2:EB00 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000
ok
Had ANS TC been aware of the need they would almost certainly have specified it.