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

Exponential notation is not captured as a float #25

Closed
alexhallam opened this issue Aug 2, 2021 · 2 comments · Fixed by #83
Closed

Exponential notation is not captured as a float #25

alexhallam opened this issue Aug 2, 2021 · 2 comments · Fixed by #83
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@alexhallam
Copy link
Owner

I saw the value 3.933994946453261e-05 was not converted to a sigfig. I am guessing this is because this values is not interpreted as a float.

@alexhallam
Copy link
Owner Author

Try:

if e- or e+ is in the string then assume a float and multiple number by 10^(string after e[-/+])

@alexhallam
Copy link
Owner Author

an alternative:

in the sigfig, if there is an e in the float name then sigfig on values before e and concatonate e in final string

@alexhallam alexhallam added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant