A float literal with a zero after the point keeps the point #630

Manually merged
binjovi-bot merged 1 commit from rpg-9-t-twin-point-20261024 into trunk 2026-10-24 14:01:32 +00:00
Owner

A float literal with a zero after the point keeps the point

A decimal literal like 1.0 in a float expression has the digits 10 in its
twin. The rebuild took the first decimal constant of the pool whose value is
the float, and a program can hold an unused constant of one digit (1) before
it. The rebuild wrote 1 and the program compiled to a different constant
pool. The rebuild now takes a twin with decimal positions before one without
(> 1.0, * 0.50 + 1.0). The ftwin3-h4 and ftwin3-h6 probes are the
public reproduction.

Gates

{"checks":{"net_statements":0},"census":{"statuses":{"recovered":645,"partial":0,"unresolved":0},"regressions":0,"newly_recovered":0},"golden":"golden 173/5/0 == dump 173/5/0","emit":{"worse":[],"better":0,"newly_clean":4,"clean_delta":4,"base":215,"new":219},"twins":{"groups":434,"recovered":419,"regressions":[],"newly":4},"allgroups":{"regressions":[],"newly":[],"worse":[]},"full_check":{"exit":0,"seconds":826}}
# A float literal with a zero after the point keeps the point A decimal literal like `1.0` in a float expression has the digits `10` in its twin. The rebuild took the first decimal constant of the pool whose value is the float, and a program can hold an unused constant of one digit (`1`) before it. The rebuild wrote `1` and the program compiled to a different constant pool. The rebuild now takes a twin with decimal positions before one without (`> 1.0`, `* 0.50 + 1.0`). The `ftwin3-h4` and `ftwin3-h6` probes are the public reproduction. ## Gates ``` {"checks":{"net_statements":0},"census":{"statuses":{"recovered":645,"partial":0,"unresolved":0},"regressions":0,"newly_recovered":0},"golden":"golden 173/5/0 == dump 173/5/0","emit":{"worse":[],"better":0,"newly_clean":4,"clean_delta":4,"base":215,"new":219},"twins":{"groups":434,"recovered":419,"regressions":[],"newly":4},"allgroups":{"regressions":[],"newly":[],"worse":[]},"full_check":{"exit":0,"seconds":826}} ```
Keep the point of a float literal with a zero after it
All checks were successful
binjovi/ci Binjovi completed the frozen plan
e508dd13aa
A twin of one digit that the program does not use came before the twin with
decimal positions, so 1.0 was written 1. Prefer the twin with positions.
Probes ftwin3-h4 and ftwin3-h6.
binjovi-bot manually merged commit e508dd13aa into trunk 2026-10-24 14:01:32 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sean/sourcerer!630
No description provided.