Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

format: do not output 0's after decimals for coeff < -2000 #130

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

otan
Copy link
Contributor

@otan otan commented Sep 13, 2023

In Cockroach, the minimum supported coefficient for 0 is -2000. To avoid the memory overload that occurs when we try format a large 0 coefficient like 0E-10000, we amend the fix made in ffd11b1 to only output trailing zeroes up to -2000.

@otan otan force-pushed the coeff_fix branch 2 times, most recently from 7702a69 to ba96220 Compare September 13, 2023 00:21
@otan otan changed the title format: do not output 0's after decimals for coeff <= -2000 format: do not output 0's after decimals for coeff < -2000 Sep 13, 2023
In Cockroach, the minimum supported coefficient for 0 is -2000.
To avoid the memory overload that occurs when we try format a large
0 coefficient like `0E-10000`, we amend the fix made in
ffd11b1 to only output trailing
zeroes up to -2000.
@otan otan merged commit cb6ebb8 into cockroachdb:master Sep 13, 2023
24 checks passed
@otan otan deleted the coeff_fix branch September 13, 2023 03:04
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