juareznasato / vuetify-money

vuetify-money
45 stars 23 forks source link

Numbers bigger than 17 digits #24

Open fantasyflip opened 3 years ago

fantasyflip commented 3 years ago

Problem

Tried to enter numbers with a length of 22 digits:

1234567890123456789012

The vuetify-money component was filled with the following after entering the number above:

1.234.567.890.123.457.000.000

After the 15th digit the following digit gets increased and followed by 0 for every appended digit

My Syntax

Template:

<vuetify-money
       class="px-4"
       style="width: 250px"
       v-model="testValue"
       v-bind:options="options"
       background-color="secondaryAccent"
       label="Answer"
/>

Script:

data() {
    return {
      testValue: "",
      options: {
        locale: "pt-BR",
        length: 30,
        precision: 0,
      },
   }
}

Action I tried to solve

Adjusting the length doesn't affect the issue.

juareznasato commented 3 years ago

It's a real problem. I will try to fix it in the next version.

ivok commented 3 years ago

I am wondering where you would need to input Sixtillion whatever currency is :D

fantasyflip commented 3 years ago

@ivok I'm currently developing a web-based guessing game with a friend, where you guess against your friends on different questions. The one that guessed the best gets the point. Since gathering questions for that game could be a little hard on the long term, I'd like to have the opportunity for players to submit a possible guess-question for the game. And since I'm not sure what they'll submit I wanted to be sure, that the front-end can handle such big numbers.