KEMBAR78
Update example calculation result in BigMath document by tompng · Pull Request #428 · ruby/bigdecimal · GitHub
Skip to content

Conversation

@tompng
Copy link
Member

@tompng tompng commented Sep 12, 2025

Update outdated code examples found by this snippet:

File.read('lib/bigdecimal/math.rb').scan(/^[# ]+BigMath.+\n.+=> *".+"/).each{|s|
  code = s[/BigMath.+/]; a=eval(s[/".+"/])
  puts code
  y=eval(code);puts y==a ? 'OK' : [:error, y, a]
}

@tompng tompng merged commit 07696bc into ruby:master Sep 12, 2025
81 checks passed
@tompng tompng deleted the fix_example_output branch September 12, 2025 19:28
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