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

Radix & mapToRadix wrong behavior #1108

Open
frerotg opened this issue Feb 4, 2025 · 0 comments
Open

Radix & mapToRadix wrong behavior #1108

frerotg opened this issue Feb 4, 2025 · 0 comments

Comments

@frerotg
Copy link

frerotg commented Feb 4, 2025

Describe the bug
If I'm correct radix is used to display the decimal delimiter and mapToRadix is used to identify decimal in the source data.
In my case it's the opposite. If I have a number with a "." as decimal delimiter iMask use my radix propery to identify where is the decimal delimiter instead of mapToRadix.

To Reproduce
https://codepen.io/Frerotsweb/pen/raBgrNY

Expected behavior
If my source number is "3645.6" and I set "m" as thousandDelimiter, "d" as radix and "." as mapToRadix my expected result is 3m645d6 instead of that I have "36m456".

If I set "m" as thousandDelimiter, "." as radix and "d" as mapToRadix my result is 3m645.6.
Maybe I dont understand the goal of mapToRadix but for me the doc is clear...

Environment:

  • OS: [Win]
  • Browser [Chrome]
  • IMask version : last
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

1 participant