Skip to content

Conversation

@gbPagano
Copy link

Adresses the feedbacks from #69 and closes #68.

5e5e5 results in an error, but I believe this is the expected behavior.

fn eval_exponential_notation_decimal() {
let evaled = eval("2.5e5", None);
assert_eq!(evaled, Ok(250000.0));
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks good to me but can you please help to test the result of 1 e 11? It shouldn't work.

Copy link
Author

Choose a reason for hiding this comment

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

Why shouldn't 1e11 work?

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.

support for exponential notation

3 participants