How can I determine if the 4th decimal place in a number is zero or not? I want to throw an error message if it is not zero. For instance, in the number 2.3189, the value of the 4th decimal place is 9. My current code works for most cases, but for example with the number 1.2570, it incorrectly identifies the 0 as not being a 0. On the other hand, checking 1.2580 correctly shows the 0 as a 0. Any assistance with this issue would be much appreciated.
!!(submission && (quantity * 10000 % 10) === 0);