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

The to() method does not work with strings. #10

Open
m-spyratos opened this issue Nov 8, 2015 · 2 comments
Open

The to() method does not work with strings. #10

m-spyratos opened this issue Nov 8, 2015 · 2 comments

Comments

@m-spyratos
Copy link

In the documentation you have the following example:

var Format = wNumb({
    prefix: '$',
    postfix: ',-',
    thousand: ','
});

Format.to ( '90000' );
    => '$90,000,-'

Running it, instead of returning the desired result '$90,000,-', it returns false.
Also, the case is not covered by your tests.
https://jsfiddle.net/1ho4LsjL/

@leongersen
Copy link
Owner

Good observation, I'll get it fixed. Thanks!

@ghost
Copy link

ghost commented Sep 20, 2017

@leongersen Still got false in v1.1.0.

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