Closed ishiko732 closed 8 months ago
β An unexpected error occurred. For more details, check console
Error: The process '/opt/hostedtoolcache/node/16.20.2/x64/bin/npx' failed with exit code 1
St.:grey_question: |
Category | Percentage | Covered / Total |
---|---|---|---|
π’ | Statements | 100% | 305/305 |
π’ | Branches | 100% | 122/122 |
π’ | Functions | 100% | 47/47 |
π’ | Lines | 100% | 298/298 |
Report generated by π§ͺjest coverage report action from 2133a8dbb81d638aa86e13e6c9bbba1d25eb0b5b
use decimal.js to test decimal precision.
Due to the implementation of the IEEE754 standard for the number type in JavaScript, there are precision issues. For example, 0.1 + 0.2 !== 0.3. When
w[4] = 5.1443
,w[5] = 1.2006
:3.9437000000000006
, expected :3.9437
7.5455000000000005
, expected :7.5455
0.23456790123456783
, expected :0.2345679012345679