kevinongko / vue-numeric

Input field component to display a formatted currency value based on Vue.js
https://kevinongko.github.io/vue-numeric/
MIT License
461 stars 118 forks source link

Random decimal values being added on the input #112

Open o-marchi opened 3 years ago

o-marchi commented 3 years ago

If you are reporting bugs please fill the form below otherwise feel free to delete the form.

Expected Behavior

When the user inputs a value, the correct value should appear on the input, no matter the number of decimal digits.

Actual Behavior

If the decimal digits are set to a big number (in this case 15), some random decimal values are automatically added. This behavior can be reproduced on the official plugin live demo:

image

Steps to Reproduce the Problem

  1. Set the decimal digits to 15
  2. Input the number 1

Specifications

blackflash commented 2 years ago

@o-marchi have you been able to solve this somehow?

kevinongko commented 2 years ago

CMIIW, I think this is problem with account-js library https://github.com/openexchangerates/accounting.js