question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Decimal separator conversion

See original GitHub issue

I’m using the “numeric” mask with this configuration:

$(".input-mask").inputmask('numeric', {
    radixPoint: '.',
    autoUnmask: true,
    rightAlign: false,
    unmaskAsNumber: true,
    removeMaskOnSubmit: true
});

When I try to press “,” (comma), instead of prevent it, I would replace it with “.” (dot) … is it possibile?

Thank you

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
RobinHerbotscommented, Jul 9, 2015

@billmn ,

Fixed with the latest commit

1reaction
RobinHerbotscommented, Jul 9, 2015

@billmn ,

Now I see what you mean. Overtyping 1234.56 with komma does not work.

I will fix that

Read more comments on GitHub >

github_iconTop Results From Across the Web

Decimal separator
A decimal separator is a symbol used to separate the integer part from the fractional part of a number written in decimal form...
Read more >
4 methods to change comma to decimal point in Excel
Method 1: converting decimal point to comma in Excel through Notepad · Copy the data from the original spreadsheet on this page. ·...
Read more >
How to Convert Comma to Decimal Point & Dot to Comma in ...
Method 1: Text to Columns · Select the cells that contain the values you want to convert. · Select the Data tab on...
Read more >
How to Change Commas to Decimal Points and Vice Versa ...
Changing commas to decimals and vice versa by changing Excel Options · Click the File tab in the Ribbon. · Click Options. ·...
Read more >
International Currency Conversion - DFA Cornell
United States (U.S.) currency is formatted with a decimal point (.) as a separator between the dollars and cents. Some countries use a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found