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

Use CultureInfo for parsing estimates #122

Merged
merged 1 commit into from
Nov 3, 2017

Conversation

SpoonOfDoom
Copy link
Contributor

In cultures with ',' as the decimal seperator, Decimal.Parse parses "0.68" as 68 instead of 0.68 if you do it without specifying the culture, which made ratioavg take some really silly values.

Solves #121.

In cultures with ',' as the decimal seperator, Decimal.Parse parses "0.68" as 68 instead of 0.68 if you do it without specifying the culture, which made ratioavg take some really silly values
@Iridium-IO
Copy link
Member

Ah of course, it's capturing the ratio from the database as a string, which causes the issue on type conversion :)

Thanks, I'll push this when I'm at my computer in the morning

@Iridium-IO Iridium-IO merged commit 496e547 into IridiumIO:master Nov 3, 2017
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