Problem with definition of real_width?
chris hermansen
clhermansen@gmail.com
Fri Aug 15 16:54:23 GMT 2025
Hello all,
I believe there is an error in the definition of the constant real_width in
GNU Algol 68.
The value of that constant seems to be 24.
However if I calculate the value using the formula from the Revised Report
§10.3.2.1 p 163
1 - S entier(L ln (L small real) / L ln (L 10));
I get 8.
The number 24 looks like it might be the number of bits in the significand,
rather than
the smallest integral value such that different strings are produced by
> conversion of '1.0' and of '1.0 + L small real' using the pattern d. n(L
> real width - l)d
which is the explanation of the semantics of real_width (same page of the
RR).
But maybe I'm missing something?
Thanks in advance for clarifying this!
--
Chris Hermansen · clhermansen "at" gmail "dot" com
C'est ma façon de parler.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/algol68/attachments/20250815/1857caf2/attachment.htm>
More information about the Algol68
mailing list