tmpim / KristWeb-old

The old web wallet for Krist. Superseded by tmpim/KristWeb2
https://github.com/tmpim/KristWeb2
7 stars 5 forks source link

Numberinput parsing high numbers wrong #18

Closed Wendelstein7 closed 7 years ago

Wendelstein7 commented 7 years ago

The number input field at "making a transaction" looks for the number before the dot. When entering a really high number, like "53180089999999931045589", and then clicking "send" will give you the message "Successfully sent 53.180.089.999.999.900.000.000 KST to k5europe3x" but the actual amount is 1 krist.

You can also see that, by entering the high number, and then clicking the "up" arrow button, that it will get reformatted to 5.3180089999999931e+22. After clicking "send" next, 5 krist will be send, probably because the parser looks for the number before the first dot...