Skip to content

Fix scientific floating point construction represention#1

Open
aishwaryaanegundi wants to merge 2 commits into
masterfrom
fix-scientific-floating-point-construction-represention
Open

Fix scientific floating point construction represention#1
aishwaryaanegundi wants to merge 2 commits into
masterfrom
fix-scientific-floating-point-construction-represention

Conversation

@aishwaryaanegundi
Copy link
Copy Markdown
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