[RFC] CEIL, FLOOR, ROUND returning REAL

chris hermansen clhermansen@gmail.com
Mon May 18 04:39:40 GMT 2026


Piero and everyone,

On Sun, May 17, 2026, 21:27 Pietro Monteiro <pietro@sociotechnical.xyz>
wrote:

> While working on implementing CEIL I realized that CEIL, FLOOR, ROUND
> return an integer of same SIZETY as the real operand. I fortunately
> don't much involving floating point math, but I think that returning a
> real of same SIZETY as the operand might be usefull. What do y'all
> think?
>

I think the length of the result should be the same as that of the operand.

But I'm not sure I'm following you completely; ENTIER returns an INT, LONG
INT OR LONG LONG INT, not reals. But your subject line suggests you plan to
return real results from CEIL, FLOOR, ROUND?

I guess an error is thrown if the operand is outside the range
representable by INT, LONG INT, LONG LONG INT respectively?

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/algol68/attachments/20260517/374e0ff9/attachment.htm>


More information about the Algol68 mailing list