mirror of
https://github.com/tc39/test262.git
synced 2025-08-28 13:28:38 +02:00
20 lines
500 B
JavaScript
20 lines
500 B
JavaScript
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/**
|
|
* Math.PI is approximately 3.1415926535897932
|
|
*
|
|
* @path ch15/15.8/15.8.1/15.8.1.6/S15.8.1.6_A1.js
|
|
* @description Comparing Math.PI with 3.1415926535897932
|
|
*/
|
|
|
|
$INCLUDE("math_precision.js");
|
|
$INCLUDE("math_isequal.js");
|
|
|
|
// CHECK#1
|
|
if (!isEqual(Math.PI, 3.1415926535897932)) {
|
|
$ERROR('#1: \'Math.PI is not approximatley equal to 3.1415926535897932\'');
|
|
}
|
|
|
|
|