A decimal twin keeps its trailing zeros #629
Loading…
Reference in a new issue
No description provided.
Delete branch "rpg-9-s-twin-zeros-20261024"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A decimal twin keeps its trailing zeros
A decimal literal in a float expression leaves a decimal constant beside the
float constant (the twin). The twin has the digits of the literal as written:
0.50is50,3.0is30. The rebuild looked for the twin by the shortestdigits of the float (
5,3), found none, and wrote a float literal (0.5E0).That literal compiles to a float constant without a twin, so the constant pool
of the rebuilt program differed. The rebuild now takes a twin whose digits have
trailing zeros and writes the literal with the same decimal positions
(
A + 0.50,A / 3.0 + 2.50). Theftwin2-g6andftwin2-g7probes are thepublic reproduction.
Gates