Frozen-Potato / DevBasicSkills2018-Team8

GNU General Public License v3.0
0 stars 0 forks source link

Base converter suffers floating point imprecision #2

Open McSinyx opened 5 years ago

McSinyx commented 5 years ago

I.e. parseInt doesn't handle big numbers quite well. To reproduce, just spam the input with shitload of digits.

Frozen-Potato commented 5 years ago

saw that coming from miles away but it's the most efficient way to do in the time window

McSinyx commented 5 years ago

I don't even know how to work around this without using external library (/ and % are fukt when used with big ints as well). IMHO using JS to provide basic math tools is a poor choice to begin with. One could have chosen something like a mechanics simulator (with HTML canvas) and still demonstrate

basic knowledge in Math, JavaScript, Html, and CSS

and not end up building stuff that is entirely useless.