Skip to content

[std] add haxe.Int64.toFloat()#12924

Open
kLabz wants to merge 1 commit into
developmentfrom
int64_toFloat
Open

[std] add haxe.Int64.toFloat()#12924
kLabz wants to merge 1 commit into
developmentfrom
int64_toFloat

Conversation

@kLabz

@kLabz kLabz commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Adds an instance method toFloat():Float to haxe.Int64 across all target-specific implementations. The shared conversion lives in Int64Helper.toFloat, computing high * 2^32 + lowUnsigned where both terms are exactly representable as Float, so the single addition yields the correctly-rounded result.

Adds an instance method `toFloat():Float` to haxe.Int64 across all
target-specific implementations. The shared conversion lives in
Int64Helper.toFloat, computing `high * 2^32 + lowUnsigned` where both
terms are exactly representable as Float, so the single addition yields
the correctly-rounded result.
@skial skial mentioned this pull request Jun 4, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant