Skip to content

Is it possibele to have negative numbers formatted ? #436

Closed

Description

@halliballi123

Hallo sorry for my (maybe) stubid question.
I use masks like '000.000.000.000.000' or '000.000.000.000.000,00', these work justs fine but I don't know how to add the possibility to have an optional minus infront of the numbers. Is that possible?
Thank you

Activity

  1. joshharington commented on Jul 29, 2016

    @joshharington

    Have you managed to sort this out ?

  2. RafaelRViana commented on Sep 23, 2016

    @RafaelRViana

    +1
    How to deal with negative money using money input?

  3. halliballi123 commented on Sep 23, 2016

    @halliballi123
    Author

    I have negative money input for example, when I need balance sums of companies. These are not always positive

  4. igorescobar commented on Oct 12, 2016

    @igorescobar
    Owner

    jQuery Mask has only a few aspects of currency. If you need things like fixed default value or negative values or + sign our - in front of your numbers I recommend you to use a plugin that focus on solving those issues.

    I do not intend to implement all possibilities on currency problems on that plugin as the main intent of jQuery Mask is to remain generic.

    Use this one for example: https://github.com/plentz/jquery-maskmoney

  5. igorescobar commented on Oct 12, 2016

    @igorescobar
    Owner

    Related #295

  6. igorescobar commented on Oct 20, 2017

    @igorescobar
    Owner

    If you get this far and still want to try something else you may like this thread:
    #619

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions