Skip to content

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