Jump to content

Newbie question! Comma & decimal point problem with calculator


CWM

Recommended Posts

Posted


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! 

CleanShot 2021-11-06 at 05.40.49.png

Posted

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.

Posted
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

 

 

Posted
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

Posted
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? 

 

 

 

Posted
16 minutes ago, Vero said:

And have you checked "ignore thousand separators"?

That was it! Thanks, Vero. Problem solved! 

  • 2 years later...
Posted

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?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...