-
Notifications
You must be signed in to change notification settings - Fork 829
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
Comments
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
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() } },
The text was updated successfully, but these errors were encountered: