A binary field against a decimal literal #631
Loading…
Reference in a new issue
No description provided.
Delete branch "rpg-9-u-int-decimal-compare-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 binary field against a decimal literal
if i > 0.5with a binary fieldicompiles the field to a decimal, shifts itby the positions of the literal (
61 6 1 0) and compares. The rebuild lost theshift of a plain field, so the literal had no decimal positions and the
statement became
if *off. The shifted field now names the positions of theliteral (
> 0.5,>= 12.25,< -1.5). A packed field against a literal staysopen: the object holds the sum of the positions of the field and of the literal,
not each one. The
ftwin3-h1,h7andh8probes are the public reproduction.Gates