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

Exponential numbers failer #1031

Open
amir04lm26 opened this issue Oct 20, 2020 · 1 comment
Open

Exponential numbers failer #1031

amir04lm26 opened this issue Oct 20, 2020 · 1 comment

Comments

@amir04lm26
Copy link

amir04lm26 commented Oct 20, 2020

I use this library with v-mask and, It seems that it doesn't support exponential numbers.
Thanks for any help

export function getCurrencyMask () {
return createNumberMask({
prefix: '',
allowDecimal: true,
decimalLimit: 8,
includeThousandsSeparator: true,
allowNegative: false,
allowLeadingZeroes: true
})
}

<input v-model="toDollarInputModel" v-mask="mask" placeholder="1" type="text" min="0" >

data () { return { mask: getCurrencyMask() } },

@mashouf
Copy link

mashouf commented May 26, 2024

I have problem with exponential numbers too. The library return a wrong number It just remove e and symbol e.g. when input is dynamically set as 1e-6 the result will be 15!

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