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 scientific floating point construction represention #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

aishwaryaanegundi
Copy link
Collaborator

This PR modifies the library to add decimal point to scientific floating point.

For example:

Now:
3e-5 would be written as 3e-05
With changes:
3e-5 would be written as 3.0e-05

These changes are needed to avoiding reading scientific floating points read as string from yaml which is based on yaml 1.1. yaml 1.1 do not regard this !float 3e-5 as floating type. Where as ruamel.yaml is based on yaml 1.2 which treats them as float

Our requirement is to be able to have a yaml file that is consistent with both both libraries

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