Is it safe to use JavaScript number type (64-bit double precision) for money operations? We plan to develop a software for small businesses and amounts are usually less than 100.000$, but I think numbers may be much larger because we use local currencies and for example, 1$ = 6.5 Chinese yuan.
I know that there may be lost of precision, but how bad is it in the real world?
I also suggest that we can skip problems like
0.2 + 0.1 = 0.30000000000000004
because after truncating the number using local currency settings it would be the same eg $0.30
Some people also recommend to scale values by multiplying them by 100, but I'm not sure this will work in every situation, because I suggest there may be currencies with more than 2 digits after point.