Skip to content

Fix adjusting x to 0.3..3 in log calculation#397

Merged
tompng merged 1 commit intoruby:masterfrom
tompng:log_exponent_adjust_fix
Aug 8, 2025
Merged

Fix adjusting x to 0.3..3 in log calculation#397
tompng merged 1 commit intoruby:masterfrom
tompng:log_exponent_adjust_fix

Conversation

@tompng
Copy link
Member

@tompng tompng commented Aug 8, 2025

Range of x = x * BigDecimal("1e#{-x.exponent}") is in 0.1...1.0.
The code was wrongly assumes that the range is 1.0...10.0

@tompng tompng merged commit 46fd1bd into ruby:master Aug 8, 2025
79 checks passed
@tompng tompng deleted the log_exponent_adjust_fix branch August 8, 2025 15:40
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