1--TEST-- 2Test for pre-defined math constants 3--INI-- 4precision=14 5--FILE-- 6<?php 7echo "M_E= "; 8var_dump(M_E); 9echo "M_LOG2E= "; 10var_dump(M_LOG2E); 11echo "M_LOG10E= "; 12var_dump(M_LOG10E); 13echo "M_LN2= "; 14var_dump(M_LN2); 15echo "M_LN10= "; 16var_dump(M_LN10); 17echo "M_PI= "; 18var_dump(M_PI); 19echo "M_PI_2= "; 20var_dump(M_PI_2); 21echo "M_PI_4= "; 22var_dump(M_PI_4); 23echo "M_1_PI= "; 24var_dump(M_1_PI); 25echo "M_2_PI= "; 26var_dump(M_2_PI); 27echo "M_SQRTPI= "; 28var_dump(M_SQRTPI); 29echo "M_2_SQRTPI= "; 30var_dump(M_2_SQRTPI); 31echo "M_LNPI= "; 32var_dump(M_LNPI); 33echo "M_EULER= "; 34var_dump(M_EULER); 35echo "M_SQRT2= "; 36var_dump(M_SQRT2); 37echo "M_SQRT1_2= "; 38var_dump(M_SQRT1_2); 39echo "M_SQRT3= "; 40var_dump(M_SQRT3); 41echo "INF= "; 42var_dump(INF); 43echo "NAN= "; 44var_dump(NAN); 45?> 46--EXPECT-- 47M_E= float(2.718281828459) 48M_LOG2E= float(1.442695040889) 49M_LOG10E= float(0.43429448190325) 50M_LN2= float(0.69314718055995) 51M_LN10= float(2.302585092994) 52M_PI= float(3.1415926535898) 53M_PI_2= float(1.5707963267949) 54M_PI_4= float(0.78539816339745) 55M_1_PI= float(0.31830988618379) 56M_2_PI= float(0.63661977236758) 57M_SQRTPI= float(1.7724538509055) 58M_2_SQRTPI= float(1.1283791670955) 59M_LNPI= float(1.1447298858494) 60M_EULER= float(0.57721566490153) 61M_SQRT2= float(1.4142135623731) 62M_SQRT1_2= float(0.70710678118655) 63M_SQRT3= float(1.7320508075689) 64INF= float(INF) 65NAN= float(NAN) 66