Giter Site home page Giter Site logo

No decimal place about react-number-format HOT 10 CLOSED

s-yadav avatar s-yadav commented on July 26, 2024
No decimal place

from react-number-format.

Comments (10)

crperezt avatar crperezt commented on July 26, 2024 27

Solution is now decimalScale=0 for those stumbling into this problem.

from react-number-format.

s-yadav avatar s-yadav commented on July 26, 2024 8

set decimalSeparator = {false}

from react-number-format.

s-yadav avatar s-yadav commented on July 26, 2024 2

I guess it makes sense to use decimalPrecision={0} instead of decimalSeparator="" or decimalSeparator= {false} as having decimal numbers is related to decimalPrecision not decimalSeparator.

from react-number-format.

s-yadav avatar s-yadav commented on July 26, 2024 1

Hey already have done fixes for seperators issue. Will be adding v2.0.0-alpha tonight or tomorrow.

from react-number-format.

saintego avatar saintego commented on July 26, 2024

Thanks, maybe it'll be good at least to describe it better in README.md, while you have also another similar issue here #39
But i thinks 0.undefined is not something that is wanted

from react-number-format.

ErwinLee10 avatar ErwinLee10 commented on July 26, 2024

I have a problem for decimal as well.
In the case of Rupiah currency, the thousand separator is "." while the decimal separator is ",".

How can I disallow decimal on the input?

from react-number-format.

ErwinLee10 avatar ErwinLee10 commented on July 26, 2024

thanks @s-yadav, so to disallow decimal, we will still use decimalSeparator= {false} ?

from react-number-format.

s-yadav avatar s-yadav commented on July 26, 2024

from react-number-format.

weihong1028 avatar weihong1028 commented on July 26, 2024

waiting v2.0.0-alpha

from react-number-format.

s-yadav avatar s-yadav commented on July 26, 2024

Fixed in v2.0.0 alpha

from react-number-format.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.