● All four behaviors are correct: #22
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
navicore/patch-prolog!22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-17"
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?
#17
Summary: arith_div Int/Int arm now routes through check_float(*a as f64 / *b as f64) per ISO 13211-1 §9.1.4.
Zero-divisor labels collapsed to "float division" since all paths now produce float results. Five regression
tests added in tests/integration.rs covering positive/negative quotients, exact-quotient float-ness (verified
via float/1), unaffected // behavior, and the int-by-zero error. All 343 tests green.
Note for the loglings curriculum: 10 / 3 printing as 3.3333333333333335 (15-digit string of 3s plus a 5) is the
standard IEEE 754 double-precision round-trip representation. If you want curriculum-friendlier output (e.g.
3.3333333333333 or ~3.333), that's a separate printer concern worth its own discussion.
/does integer division for integer operands (should be float per ISO 9.1.4) #17