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