Gforth 0.7.0, Copyright (C) 1995-2008 Free Software Foundation, Inc.
Gforth comes with ABSOLUTELY NO WARRANTY; for details type `license'
Type `bye' to exit
5 set-precision ok
1.1e-2 f. 0.011 ok <- expected 5 digits i.e. 0.0110
1.1e-40 f. 0.00000000000000000000000000000000000000011 ok
From minforth@21:1/5 to All on Fri Aug 2 07:54:50 2024
There are so many implementation-defined options and ambiguous
conditions in the fp-number standard which altogether leave a
lot of leeway. And f.ex. omission of trailing zeros isn't
specified at all.
So what are you missing? It is a playing field _deliberately_
made with few boundaries.
Theoretically one could argue that a reference Forth system
or a specified set ouf fp output formats would be of help.
But nobody cares. Individual narrow interpretations even less.
So what ..