-
Notifications
You must be signed in to change notification settings - Fork 2
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
Rounding issue in certain scenarios #24
Comments
What version of the plugin are you running? Looks like an older one. You should be on v2.0.1 |
That's exactly the one i'm using, also no additional updates are shown in FlowLauncher. |
I wonder if this has something to do with the same issue that happens in Color plugin though. WIN10 22H2 |
I'm not sure if that's a Flow core code issue or an individual plugin issue. Do other plugins work ok? I'll keep an eye on that color issue and see if anything comes up I can fix here. |
Other than that, everything works without any issues. However, i can't say that i use any other plugins that would require commas or decimals. If you can think of any that work in a similar way then i can check them for any weird behaviour regarding that. If anything, i'm surprised that this plugin didn't crash like it happens with colors. And while i have no idea how it works internally, it seems a bit odd that two different plugins, written in two different languages, are having the same problem with "Regional Format" when it's not set to english, so at this point betting on Flow being the culprit seems reasonable. |
As a workaround it looks like changing - locale.setlocale(locale.LC_NUMERIC, "")
+ locale.setlocale(locale.LC_NUMERIC, "en_US.utf8")
works without any issues (for now) and doesn't force me to change |
I just installed Flow together with General Converter and Currency Converter and both of the round most of the stuff. Can't really see a pattern which does gets round and what doesn't, but I'd say 75% of my results gets rounded. And btw, having "weight" or whatever is being converted in large and the result in small feels like the wrong way round :) |
Hi, I have the same problem, trying to convert 5 ft to m I get 2 meters which is not correct, when i try 2 m ft I get 7 meters which also is not correct. |
Thanks, this fixed the issue for me as well. |
I can't replicate. Are you using a different regional format like others above? Minimum precision should be 3 decimal places. |
test.mp4
While
lb -> g
is quite precise, the oppositeg -> lb
has its issues where anything below227 g
calculates as 0, additionally rounding in this case results in not very good precision.I haven't tested or encountered any other 'wrong' conversions, but it's possible that it behaves similary in other scenarios.
The text was updated successfully, but these errors were encountered: