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

Fix some number serialization bugs #689

Merged
merged 3 commits into from
May 24, 2019
Merged

Fix some number serialization bugs #689

merged 3 commits into from
May 24, 2019

Conversation

nex3
Copy link
Contributor

@nex3 nex3 commented May 20, 2019

No description provided.

nex3 added 2 commits May 20, 2019 15:47
This allows us to avoid traversing the number string more times than
necessary.
This function didn't expect a number ending in ".0", because they're
normally filtered out by fuzzyAsInt(). However, they can make it
through for very large doubles.
@nex3 nex3 requested a review from nshahan May 20, 2019 22:51
Copy link
Contributor

@nshahan nshahan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, with one small typo.

return;
}

var text = number.toString();
if (text.contains("e")) text = _removeExponent(text);
// Dart and Node both print doubles at least 1e21 using exponentail
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exponentail --> exponential

Copy link
Contributor Author

@nex3 nex3 May 21, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The exponentail is the rightward extension of the graph of x^-2 😆

@nex3 nex3 merged commit 2836780 into master May 24, 2019
@nex3 nex3 deleted the exponent branch May 24, 2019 22:09
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.

None yet

2 participants