Open DatHaker123 opened 11 months ago
Mmm awesome idea, will implement! For the data tab part, oops overlooked that issue haha, will fix too~
oke added d3af475
We should keep 2 extra decimal places instead of just 1 more than the input, because of this:
Should be 0.25 but rounds up to 0.3
Made a dirty simple fix 7a3be0f But numbers getting a little messy, I might have to rethink how to display numbers.
Edit: actually not too bad...
The things per second in the List tab are fixed to 1 decimal place by toFixed(1) in src/routes/al2/list.svelte. The 1 should be replaced by something along the lines of:
Math.floor(num) === num ? 0 : num.toString().split(".")[1].length || 0
instead, where num is the number of items/sec given by the user. This will improve things if the user inputs a decimal number.
Similarly, when inputting a decimal number, in the Data tab, we get the classic: