Skip to content

fix(interop): round yield before casting to int - #93

Merged
dhaupt88 merged 2 commits into
masterfrom
round-interop-yield-before-int-cast
Aug 13, 2026
Merged

fix(interop): round yield before casting to int#93
dhaupt88 merged 2 commits into
masterfrom
round-interop-yield-before-int-cast

Conversation

@dhaupt88

@dhaupt88 dhaupt88 commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Float multiplication is inexact: 8.04 * 1000000 yields 8039999.999999999, which SafeCast::toInt rejects as not a whole number.

  • Added automated tests
  • Documented for all relevant versions

Changes

Breaking changes

dhaupt88 and others added 2 commits August 13, 2026 08:48
Float multiplication is inexact: 8.04 * 1000000 yields 8039999.999999999, which SafeCast::toInt rejects as not a whole number.
@dhaupt88
dhaupt88 merged commit 454cd46 into master Aug 13, 2026
@dhaupt88
dhaupt88 deleted the round-interop-yield-before-int-cast branch August 13, 2026 06:54
github-actions Bot pushed a commit that referenced this pull request Aug 13, 2026
## [6.13.3](v6.13.2...v6.13.3) (2026-08-13)

### Bug Fixes

* **interop:** round yield before casting to int ([#93](#93)) ([454cd46](454cd46))
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 6.13.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant