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

Feature Request: getUnformattedValue #13

Open
philharmonie opened this issue Feb 2, 2024 · 1 comment
Open

Feature Request: getUnformattedValue #13

philharmonie opened this issue Feb 2, 2024 · 1 comment

Comments

@philharmonie
Copy link

If I use

<input type="text" :value="price" @input="e => price = formatNumeral(e.target.value)"  />

and I want to do math with the price, I can't.

I'd love to see a getUnformattedValue method, that basically does something like input.replace(/[^\d.]/g, '').

@chowey
Copy link

chowey commented Mar 4, 2024

Try unformatNumeral.

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

2 participants