Skip to content

Price Formatting might be incorrect #93

@AmadeoMB

Description

@AmadeoMB

Hi there,
I having a problem while formatting some number.

So I have this number: 1081.2
The expected result would be: 1.081,2
But instead I got this result: 10.812

JS
$(".money").priceFormat({ prefix: '', centsSeparator: ',', thousandsSeparator: '.', centsLimit: 0, limit: 9999999999999 });

At first I thought it's because of my format was wrong, but I've tried
$(".money").priceFormat({ prefix: '', centsSeparator: ',', thousandsSeparator: '.', centsLimit: 1, limit: 9999999999999 });
It returns as I expected, but if I type any number behind 2, it just straight up move my 2 in front of cent separator.
I expected them to just keep my 2 and add number behind comma.

I don't know, maybe I just got confused. Any help would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions