⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jsref_obj_math.asp@output=print

📁 W3Schools tutorial..web designing
💻 ASP@OUTPUT=PRINT
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>JavaScript Math Object Reference</title>
 
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="Keywords" content="xml,tutorial,html,dhtml,css,xsl,xhtml,javascript,asp,ado,vbscript,dom,sql,colors,soap,php,authoring,programming,training,learning,beginner's guide,primer,lessons,school,howto,reference,examples,samples,source code,tags,demos,tips,links,FAQ,tag list,forms,frames,color table,w3c,cascading style sheets,active server pages,dynamic html,internet,database,development,Web building,Webmaster,html guide" />

<meta name="Description" content="Free HTML XHTML CSS JavaScript DHTML XML DOM XSL XSLT RSS AJAX ASP ADO PHP SQL tutorials, references, examples for web building." />

<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "../../https@ssl./default.htm" : "../../www./default.htm");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3855518-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>

</head>

<body>

<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>


<h1>JavaScript Math Object Reference</h1>
<hr />

<h2>Math Object Methods</h2>
<p><b>FF</b>: Firefox, <b>N</b>: Netscape, <b>IE</b>: Internet Explorer<br />
</p>
<table class="ex" cellspacing="0" border="1" width="100%" id="table4">
  <tr>
    <th width="23%" align="left" valign="top">Method</th>
    <th width="70%" align="left" valign="top">Description</th>
    <th width="4%" align="left" valign="top">FF</th>
    <th width="4%" align="left" valign="top">N</th>
    <th width="4%" align="left" valign="top">IE</th>
  </tr>
  <tr>
    <td valign="top"><a target="_top" href="jsref_abs.asp">abs(x)</a></td>
    <td valign="top">Returns the absolute value of a number</td>
    <td valign="top">1</td>
    <td valign="top">2</td>
    <td valign="top">3</td>
  </tr>
  <tr>
    <td valign="top"><a target="_top" href="jsref_acos.asp">acos(x)</a></td>
    <td valign="top">Returns the arccosine of a number</td>
    <td valign="top">1</td>
    <td valign="top">2</td>
    <td valign="top">3</td>
  </tr>
  <tr>
    <td valign="top"><a target="_top" href="jsref_asin.asp">asin(x)</a></td>
    <td valign="top">Returns the arcsine of a number</td>
    <td valign="top">1</td>
    <td valign="top">2</td>
    <td valign="top">3</td>
  </tr>
  <tr>
    <td valign="top"><a target="_top" href="jsref_atan.asp">atan(x)</a></td>
    <td valign="top">Returns the arctangent of x as a numeric value between 
	-PI/2 and PI/2 radians</td>
    <td valign="top">1</td>
    <td valign="top">2</td>
    <td valign="top">3</td>
  </tr>
  <tr>
    <td valign="top"><a target="_top" href="jsref_atan.asp">atan2(y,x)</a></td>
    <td valign="top">Returns the angle theta of an (x,y) point as a numeric 
	value between -PI and PI radians</td>
    <td valign="top">1</td>
    <td valign="top">2</td>
    <td valign="top">3</td>
  </tr>
  <tr>
    <td valign="top"><a target="_top" href="jsref_ceil.asp">ceil(x)</a></td>
    <td valign="top">Returns the value of a number rounded upwards to the 
	nearest integer</td>
    <td valign="top">1</td>
    <td valign="top">2</td>
    <td valign="top">3</td>
  </tr>
  <tr>
    <td valign="top"><a target="_top" href="jsref_cos.asp">cos(x)</a></td>
    <td valign="top">Returns the cosine of a number</td>
    <td valign="top">1</td>
    <td valign="top">2</td>
    <td valign="top">3</td>
  </tr>
  <tr>
    <td valign="top"><a target="_top" href="jsref_exp.asp">exp(x)</a></td>
    <td valign="top">Returns the value of E<sup>x</sup></td>
    <td valign="top">1</td>
    <td valign="top">2</td>
    <td valign="top">3</td>
  </tr>
  <tr>
    <td valign="top"><a target="_top" href="jsref_floor.asp">floor(x)</a></td>
    <td valign="top">Returns the value of a number rounded downwards to the 
	nearest integer</td>
    <td valign="top">1</td>
    <td valign="top">2</td>
    <td valign="top">3</td>
  </tr>
  <tr>
    <td valign="top"><a target="_top" href="jsref_log.asp">log(x)</a></td>
    <td valign="top">Returns the natural logarithm (base E) of a number</td>
    <td valign="top">1</td>
    <td valign="top">2</td>
    <td valign="top">3</td>
  </tr>
  <tr>
    <td valign="top"><a target="_top" href="jsref_max.asp">max(x,y)</a></td>
    <td valign="top">Returns the number with the highest value of x and y</td>
    <td valign="top">1</td>
    <td valign="top">2</td>
    <td valign="top">3</td>
  </tr>
  <tr>
    <td valign="top"><a target="_top" href="jsref_min.asp">min(x,y)</a></td>
    <td valign="top">Returns the number with the lowest value of x and y</td>
    <td valign="top">1</td>
    <td valign="top">2</td>
    <td valign="top">3</td>
  </tr>
  <tr>
    <td valign="top"><a target="_top" href="jsref_pow.asp">pow(x,y)</a></td>
    <td valign="top">Returns the value of x to the power of y</td>
    <td valign="top">1</td>
    <td valign="top">2</td>
    <td valign="top">3</td>
  </tr>
  <tr>
    <td valign="top"><a target="_top" href="jsref_random.asp">random()</a></td>
    <td valign="top">Returns a random number between 0 and 1</td>
    <td valign="top">1</td>
    <td valign="top">2</td>
    <td valign="top">3</td>
  </tr>
  <tr>
    <td valign="top"><a target="_top" href="jsref_round.asp">round(x)</a></td>
    <td valign="top">Rounds a number to the nearest integer</td>
    <td valign="top">1</td>
    <td valign="top">2</td>
    <td valign="top">3</td>
  </tr>
  <tr>
    <td valign="top"><a target="_top" href="jsref_sin.asp">sin(x)</a></td>
    <td valign="top">Returns the sine of a number</td>
    <td valign="top">1</td>
    <td valign="top">2</td>
    <td valign="top">3</td>
  </tr>
  <tr>
    <td valign="top"><a target="_top" href="jsref_sqrt.asp">sqrt(x)</a></td>
    <td valign="top">Returns the square root of a number</td>
    <td valign="top">1</td>
    <td valign="top">2</td>
    <td valign="top">3</td>
  </tr>
  <tr>
    <td valign="top"><a target="_top" href="jsref_tan.asp">tan(x)</a></td>
    <td valign="top">Returns the tangent of an angle</td>
    <td valign="top">1</td>
    <td valign="top">2</td>
    <td valign="top">3</td>
  </tr>
  <tr>
    <td valign="top"><a href="jsref_toSource_math.asp">toSource()</a></td>
    <td valign="top">Represents the source code of an object</td>
    <td valign="top">1</td>
    <td valign="top">4</td>
    <td valign="top">-</td>
  </tr>
  <tr>
    <td valign="top"><a href="jsref_valueOf_math.asp">valueOf()</a></td>
    <td valign="top">Returns the primitive value of a Math object</td>
    <td valign="top">1</td>
    <td valign="top">2</td>
    <td valign="top">4</td>
  </tr>
  </table>
<br />
<hr>

<h2>Math Object Properties</h2>
<table class="ex" cellspacing="0" border="1" width="100%" id="table3">
  <tr>
    <th width="23%" align="left">Property</th>
    <th width="70%" align="left">Description</th>
    <th width="4%" align="left">FF</th>
    <th width="4%" align="left">N</th>
    <th width="4%" align="left">IE&nbsp;</th>
  </tr>
  <tr>
    <td valign="top"><a href="jsref_constructor_math.asp">constructor</a></td>
    <td valign="top">A reference to the function that created the object</td>
    <td valign="top">1</td>
    <td valign="top">2</td>
    <td valign="top">4</td>
  </tr>
  <tr>
    <td valign="top">E</td>
    <td valign="top">Returns Euler's constant (approx. 2.718)</td>
    <td valign="top">1</td>
    <td valign="top">2</td>
    <td valign="top">3</td>
  </tr>
  <tr>
    <td valign="top">LN2</td>
    <td valign="top">Returns the natural logarithm of 2 (approx. 0.693)</td>
    <td valign="top">1</td>
    <td valign="top">2</td>
    <td valign="top">3</td>
  </tr>
  <tr>
    <td valign="top">LN10</td>
    <td valign="top">Returns the natural logarithm of 10 (approx. 2.302)</td>
    <td valign="top">1</td>
    <td valign="top">2</td>
    <td valign="top">3</td>
  </tr>
  <tr>
    <td valign="top">LOG2E</td>
    <td valign="top">Returns the base-2 logarithm of E (approx. 1.414)</td>
    <td valign="top">1</td>
    <td valign="top">2</td>
    <td valign="top">3</td>
  </tr>
  <tr>
    <td valign="top">LOG10E</td>
    <td valign="top">Returns the base-10 logarithm of E (approx. 0.434)</td>
    <td valign="top">1</td>
    <td valign="top">2</td>
    <td valign="top">3</td>
  </tr>
  <tr>
    <td valign="top">PI</td>
    <td valign="top">Returns PI (approx. 3.14159)</td>
    <td valign="top">1</td>
    <td valign="top">2</td>
    <td valign="top">3</td>
  </tr>
  <tr>
    <td valign="top"><a href="jsref_prototype_math.asp">prototype</a></td>
    <td valign="top">Allows you to add properties and methods to the object</td>
    <td valign="top">1</td>
    <td valign="top">2</td>
    <td valign="top">4</td>
  </tr>
  <tr>
    <td valign="top">SQRT1_2</td>
    <td valign="top">Returns the square root of 1/2 (approx. 0.707)</td>
    <td valign="top">1</td>
    <td valign="top">2</td>
    <td valign="top">3</td>
  </tr>
  <tr>
    <td valign="top">SQRT2</td>
    <td valign="top">Returns the square root of 2 (approx. 1.414)</td>
    <td valign="top">1</td>
    <td valign="top">2</td>
    <td valign="top">3</td>
  </tr>
</table>
<br />

<hr />

<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -