Skip to content

Return base unit from #best_prefix if scalar is 0#81

Merged
olbrich merged 1 commit intoolbrich:masterfrom
badgerious:best_prefix_with_0_scalar
Sep 3, 2013
Merged

Return base unit from #best_prefix if scalar is 0#81
olbrich merged 1 commit intoolbrich:masterfrom
badgerious:best_prefix_with_0_scalar

Conversation

@badgerious
Copy link
Contributor

Without this, #best_prefix will raise FloatDomainError while trying to
call #floor on '-Infinity' if the scalar is 0.

Without this, #best_prefix will raise FloatDomainError while trying to
call #floor on '-Infinity' if the scalar is 0.
olbrich added a commit that referenced this pull request Sep 3, 2013
Return base unit from #best_prefix if scalar is 0.
@olbrich olbrich merged commit 6bbfcf6 into olbrich:master Sep 3, 2013
@olbrich
Copy link
Owner

olbrich commented Sep 3, 2013

Good catch, thanks!

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.

2 participants