|
1 assertNear(Math.log10(2), 0.3010299956639812); |
|
2 assertNear(Math.log10(7), 0.8450980400142568); |
|
3 assertNear(Math.log10(Math.E), Math.LOG10E); |
|
4 |
|
5 for (var i = -10; i < 10; i++) |
|
6 assertNear(Math.log10(Math.pow(10, i)), i); |
|
7 |
|
8 reportCompare(0, 0, 'ok'); |
|
9 |