Skip to content

Fixing error in rounding + doc typo#1128

Open
ThibaultDECO wants to merge 1 commit intogoogle:mainfrom
ThibaultDECO:patch-2
Open

Fixing error in rounding + doc typo#1128
ThibaultDECO wants to merge 1 commit intogoogle:mainfrom
ThibaultDECO:patch-2

Conversation

@ThibaultDECO
Copy link
Copy Markdown

get_round_factor() should return -int(math.log10(budget * gtol)), not -int(math.log10(budget * gtol))-1, in order to satisfy (budget - rounded_budget) <= (budget * gtol).

Also fixing typo in the docstrings: 10*n => 10**n

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