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

env.float doesn't work with negative numbers #43

Open
kszilagyiOT opened this issue Apr 19, 2022 · 0 comments
Open

env.float doesn't work with negative numbers #43

kszilagyiOT opened this issue Apr 19, 2022 · 0 comments

Comments

@kszilagyiOT
Copy link

Negative numbers are converted into positive ones. env.list seem to work with subcast
I think the problem is here, the minus sign is stripped:

float_str = re.sub(r'[^\d,\.]', '', value)

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

No branches or pull requests

1 participant