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

If I pass a float value the displayed value is incorrect #43

Closed
achimkoellner opened this issue Mar 21, 2017 · 3 comments
Closed

If I pass a float value the displayed value is incorrect #43

achimkoellner opened this issue Mar 21, 2017 · 3 comments

Comments

@achimkoellner
Copy link

Hi s-yadav,
first of all: Thanks for sharing this npm module with the community!

I found a weird behavior, maybe I misuse the module? Added a Codepen below.
<NumberFormat value={1255.123} decimalPrecision={2} thousandSeparator={'.'} decimalSeparator={','} />

rendered ouput "1.255.123,00"
exptected output: "1255,12"

http://codepen.io/achimkoellner/pen/YZemJZ

@achimkoellner achimkoellner changed the title If I pass a float value the displayed value incorrect If I pass a float value the displayed value is incorrect Mar 21, 2017
@TrafeX
Copy link

TrafeX commented Mar 28, 2017

Same here. Strange that it doesn't function as expected, seems pretty important functionality of this component.

@psalchow
Copy link

psalchow commented Apr 5, 2017

I have the same problem when using '.' as thousand separator and ',' as decimal separator. My workaround is to use a string value. But this is not convenient.

@s-yadav
Copy link
Owner

s-yadav commented Jul 9, 2017

Fixed in 2.0.0 alpha. Closing it. Open it again if it issue still exists.

@s-yadav s-yadav closed this as completed Jul 9, 2017
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

4 participants