How do i fix this issue with long decimals? [duplicate]

Im adding two variables, “giveMoney” and “money”, but they result in a number with like 15 decimals.
The code is referenced below.

giveMoney = users; // Users is equal to one in this scenario
giveMoney /= 10;
money += giveMoney;

Im not sure on how to fix this…
For context, this is for a Incremental Clicker game im working on, and the output is going to a <p> element with the id “money”.
Any ideas?

giveMoney = users; // Users is equal to one in this scenario
giveMoney /= 10;
money += giveMoney;

Im not sure on how to fix this…
I’ve tried doing a .toFixed(1); on it, but i dont want it to constantly have a decimal.

For context, this is for a Incremental Clicker game im working on, and the output is going to a <p> element with the id “money”.

I know how to get rid of the decimals entirely, but i dont want to do that, because its adding 0.1 every 100ms. How do i make it so when it has decimals, it just has 1 decimal, but when it doesn’t, it just doesn’t?
I know why it has a long bit of decimals, but i dont know HOW TO FIX IT.
Can anyone help?
I dont just want a response that is just money = money.toFixed(1);, because than money will always have a decimal, even when its a whole number, making an error. How do i make it so when it DOES have a decimal, it only has one, but then it can also be a whole number without having a decimal?

I did all of this because for every user, it gives +1 money a second, but i didn’t like the counter just going up by 1 every second, i want it so u can see it go up every 100 ms. So im making it go up by 0.1 every 100 ms.