On Tue, 25 Mar 2025 13:01:59 -0400 "James K. Lowden" <jklow...@cobolworx.com> wrote:
> In fact, we shouldn't use floating point for numeric literals. I'm sorry, I should have been more precise. Section 8.3.3.3 of the ISO spec defines both fixed- and floating-point numeric literals. "A fixed-point numeric literal is a character-string whose characters are selected from the digits '0' through '9', the plus sign, the minus sign, and the decimal point. The implementor shall allow for fixed-point numeric literals of 1 through 31 digits in length." A floating-point numeric literal is signified by an 'E' between two fixed-point literals, where the exponent may have no more than 4 digits, and no decimal point. What exactly that implies for constant compile-time expressions, now that fixed-point computation is available, I'm not sure. I just want to clarify what ISO says, to avoid any confusion. --jkl