CWM Posted November 6, 2021 Posted November 6, 2021 Hi, I'm a long time Launchbar user and I am considering a switch to Alfred, but I'm having a problem with decimal points and commas in Alfred's calculator. Can someone help here? I'd be very grateful! I'll explain: 1) The Good: When I paste this 10,001+10,001 into Alfred, I get this result: 20,002 That's what I want! 2) The Bad: When I paste this 10,000.1+10,000.1 into Alfred, I only get the option to search Google, Amazon, and Wikipedia with these numbers. That's bad. It should read 20,000.1 (20,000.10) 3) The Bad: When I paste this 10,000+10,000 into Alfred, I get this result: 20 That's bad. It should read 20,000 I'm using Alfred 4.6 (1266) MacOS Monterey (12.0.1) What can I do? I've attached a screenshot of my calculator preferences in Alfred. Thanks!
deanishe Posted November 6, 2021 Posted November 6, 2021 You have comma set as the decimal separator. All of the things you're calling "bad" are a direct result of your configuration. If comma is the decimal separator, then 10,000 is 10, and 10,000.01 is nonsense.
CWM Posted November 6, 2021 Author Posted November 6, 2021 14 minutes ago, deanishe said: You have comma set as the decimal separator. All of the things you're calling "bad" are a direct result of your configuration. If comma is the decimal separator, then 10,000 is 10, and 10,000.01 is nonsense. Hi Deanishe, So, is it impossible to use a decimal point and also a comma within an equation in Alfred? In Launchbar, if I enter 10,000.1+10,000.1, I get 20,000.1 (i.e., the correct result). Thanks
Vero Posted November 6, 2021 Posted November 6, 2021 13 minutes ago, CWM said: is it impossible to use a decimal point and also a comma within an equation in Alfred? If you want to use the comma as thousand separator, then you need to change the settings in the Calculator preferences to "Use decimal point as decimal separator" instead (and potentially ignore the thousands grouping depending on what kind of numbers you paste in and whether they vary in format from different sources) Alternatively, if your usage of commas and decimals matches your macOS locale (e.g. "standard" for your country/language), just set it to macOS locale specified decimal separator. It never hurts to experiment with settings a little; no harm will come of trying different settings til you find the one you like Cheers, Vero
CWM Posted November 6, 2021 Author Posted November 6, 2021 22 minutes ago, Vero said: If you want to use the comma as thousand separator, then you need to change the settings in the Calculator preferences to "Use decimal point as decimal separator" instead (and potentially ignore the thousands grouping depending on what kind of numbers you paste in and whether they vary in format from different sources) Hi Vero, Thanks for the reply. This is the problem that I have: When I change calculator preferences to "Use decimal point as decimal separator," as per your suggestion, and THEN enter 10,000.1+10,000.1, the calculator function no longer works. I only get the option to search Google, Amazon, and Wikipedia with the numbers. Is there a way to fix this?
Vero Posted November 7, 2021 Posted November 7, 2021 @CWM And have you checked "ignore thousand separators"? Cheers, Vero
CWM Posted November 7, 2021 Author Posted November 7, 2021 16 minutes ago, Vero said: And have you checked "ignore thousand separators"? That was it! Thanks, Vero. Problem solved!
outlander Posted September 17, 2024 Posted September 17, 2024 Hi, wanted to check - is that expected behaviour that even though decimal separator is enabled (and visible in the result), when copying value by clicking 'enter', the decimal separator is then gone in the pasted number?
FireFingers21 Posted September 19, 2024 Posted September 19, 2024 @outlander Yes it's intentional. See the end of the description for the Show thousands grouping separator checkbox which states "Note that this doesn't affect the copied answer, which won't be delimited.". outlander 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now