Skip to content

Issue with % #1

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

Open
prawn969 opened this issue Dec 29, 2017 · 4 comments
Open

Issue with % #1

prawn969 opened this issue Dec 29, 2017 · 4 comments

Comments

@prawn969
Copy link

prawn969 commented Dec 29, 2017

Hi, I can't use the percent symbol, it says : "Uncaught Error: 30% is not a valid variable name", great plugin by the way!!

@mikaoelitiana
Copy link
Owner

Hi @prawn969. do you still have this issue? How do you use the % symbol?

@prawn969
Copy link
Author

Hi @mikaoelitiana I still have this issue. I use it like that: 20*51%

@mikaoelitiana
Copy link
Owner

Hello @prawn969, what version of Atom and the plugin do you have? I don't have this issue on latest version of both:

atom-numbers

@mikaoelitiana
Copy link
Owner

Also, I added some test that checks it is working :

it "should calculate % operations", ->
      expect(Numbers.calculate('20*10%')).toEqual('2')
      expect(Numbers.calculate('20*51%')).toEqual('10.2')

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

2 participants