Sujet : Re: exercise in double number arithmetic
De : melahi_ahmed (at) *nospam* yahoo.fr (Ahmed)
Groupes : comp.lang.forthDate : 07. Jul 2024, 06:48:47
Autres entêtes
Organisation : novaBBS
Message-ID : <5027ddf17f1061435c0ef1df0c5a2061@www.novabbs.com>
References : 1 2 3
User-Agent : Rocksolid Light
On Sat, 6 Jul 2024 23:50:28 (UTC), Krishna Myneni wrote:
On 7/6/24 16:59, Ahmed wrote:
...
: solution ( -- d)
1 s>d 43 22 do i 1 m*/ loop d>f
21 dup s>d rot 2 do I 1 m*/ loop d>f
f/ fround f>d ;
>
...
Krishna
You have not to use fround. (42!/21!) is an integer and is multiple of
21!.
in other words 42! is multiple of (21!)^2.
Ahmed