mirror of
https://github.com/tc39/test262.git
synced 2025-06-30 10:44:40 +02:00
website\* out to test\*: - Removed test\harness\ECMA-262-TOC.xml. The casing on this file was incorrect, but more importantly it's a static file not generated by the harness - Populated test\harness with the contents of website\resources\scripts\global\. In the future, we need to update test\harness\* and propagate these changes out to website\* - Test\suite\ietestcenter is now a verbatim copy of the IE Test Center tests that WERE under website\resources\scripts\testcases\* - Moved all Sputnik tests from website\resources\scripts\testcases\* out to test\suite\sputnik_converted - Moved website\resources\scripts\testcases\excludelist.xml out to test\config\*. This particular file was only used for the test conversion process to XML, and is not actually needed by the website as best as I can tell - Website\resources\scripts\testcases now only contains the XMLized test cases. This is the right thing to do as the *.js files here weren't actually being used by the website and the general public can now peruse the test cases directly via Mercurial
14 lines
409 B
JavaScript
14 lines
409 B
JavaScript
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
function getPrecision(num)
|
|
{
|
|
//TODO: Create a table of prec's,
|
|
// because using Math for testing Math isn't that correct.
|
|
|
|
log2num = Math.log(Math.abs(num))/Math.LN2;
|
|
pernum = Math.ceil(log2num);
|
|
return(2 * Math.pow(2, -52 + pernum));
|
|
//return(0);
|
|
}
|