Skip to content

Use double consistently in Range::get_as_ratio.#108638

Merged
Repiteo merged 1 commit into
godotengine:masterfrom
Ivorforce:range-float
Jul 15, 2025
Merged

Use double consistently in Range::get_as_ratio.#108638
Repiteo merged 1 commit into
godotengine:masterfrom
Ivorforce:range-float

Conversation

@Ivorforce
Copy link
Copy Markdown
Member

There have been some regressions reported after #98750 with regards to floating point values.
I decided to take a look if there is a loss of precision, and I came across this.

I don't think it will solve any 'real' issues since it's mainly used for mouse interaction, but at least it won't lose precision for no reason.

@Ivorforce Ivorforce added this to the 4.5 milestone Jul 15, 2025
@Ivorforce Ivorforce requested a review from a team as a code owner July 15, 2025 14:42
@Repiteo Repiteo merged commit 7c472e6 into godotengine:master Jul 15, 2025
20 checks passed
@Repiteo
Copy link
Copy Markdown
Contributor

Repiteo commented Jul 15, 2025

Thanks!

@Ivorforce Ivorforce deleted the range-float branch July 15, 2025 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants