Finding out the maximum 64bit int is easy - What is JavaScript's highest integer value that a number can go to without losing precision?
I want to know the maximum size the number can be given a certain amount of decimal places for currencies.
For instance:
0.99999999 // 8 decimal places
99999999.99999999 // accurate
999999999.99999999 // no longer accurate, becomes 1000000000
So for 8 places the number is "around" a billion.
How can I precisely know this number, and also for other decimal places like 2 and 4? Thanks