Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Docs: Number.format decimal and group values are mixed up #1071

RiZKiT opened this Issue Nov 17, 2011 · 0 comments


None yet
1 participant

RiZKiT commented Nov 17, 2011

In the first example it should be

 decimal: ",",
 group: ".",

instead of

 decimal: ".",
 group: ",",

to get the example result

@SergioCrisostomo SergioCrisostomo added a commit to SergioCrisostomo/mootools-more that referenced this issue May 2, 2014

@SergioCrisostomo SergioCrisostomo Fix typo
fixes #1071

@SergioCrisostomo SergioCrisostomo added a commit that referenced this issue May 3, 2014

@SergioCrisostomo SergioCrisostomo Merge: fix documentation typo in Number.format
Docs example has switched `.` and `,` as pointed out in #1071.

If I would run that example I would get:

    "¥123,123,123.18 (YEN)"

And in the example it states

    // returns "¥123.123.123,18 (YEN)"

fixes #1071
closes #1257
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment