Since members of this mailing list are known to like
peculiar algorithms which have been posted to rosettacode.org,
I should like to bring a peculiar bug to your attention.
You have, no doubt, heard of the standard prelude procedures `whole',
`fixed' and `float'. They convert an integer, of any length, or a
real of any precision to a STRING (or CHAR). Please find
attached a small test program which produces anomalous results
for fixed, but float always gets it right. When I run the program,
I get pi/4/=1.0 in the output which suggests something funny
about the code for `fixed'. The Algol 68 code for `fixed' is in
the module `spconvert.a68' in the qad directory of the
Anybody willing to debug `fixed'?
Algol 68 specialist
Get latest updates about Open Source Projects, Conferences and News.