Math functions : Math « Javascript Objects « JavaScript DHTML

Home
JavaScript DHTML
1.Ajax Layer
2.Data Type
3.Date Time
4.Development
5.Document
6.Dojo toolkit
7.Event
8.Event onMethod
9.Ext JS
10.Form Control
11.GUI Components
12.HTML
13.Javascript Collections
14.Javascript Objects
15.Javascript Properties
16.jQuery
17.Language Basics
18.Mochkit
19.Mootools
20.Node Operation
21.Object Oriented
22.Page Components
23.Rico
24.Scriptaculous
25.Security
26.SmartClient
27.Style Layout
28.Table
29.Utilities
30.Window Browser
31.YUI Library
JavaScript DHTML » Javascript Objects » Math 
Math functions
    
Math                  Description Methods 
abs(x)                Returns the absolute value of x. 
acos(x)               Returns the arc cosine of x in radians. 
asin(x)               Returns the arc sine of x in radians. 
atan(x)               Returns the arc tangent of x in radians. 
atan2(y,x)            Returns the arc tangent of the quotient of its Arguments, that is, y/x. 
ceil(x)               Returns the smallest integer greater than or equal to x. 
cos(x)                Returns the cosine of x. 
exp(x)                Returns ex, where x is the Argument and e is Euler's constant. 
floor(x)              Returns the largest integer less than or equal to x. 
log(x)                Returns the natural logarithm (base Eof x. 
max(x,y)              Returns the greater of the two numbers x and y. 
min(x,y)              Returns the lesser of the two numbers x and y. 
pow(x,y)              Returns xy, traditionally base to the exponent power, that is, baseexponent. 
random()              Returns a pseudo-random number between and 1. 
round(x)              Returns the value of x rounded to the nearest integer with .50 as cutoff. 
sin(x)                Returns the sine of x. 
sqrt(x)               Returns the square root of x. 
tan(x)                Returns the tangent of x. 

   
    
    
    
  
Related examples in the same category
1.'abs()' Example
2.'acos()' Example
3.'asin()' Example
4.'atan()' Example
5.'atan2()' Example
6.'ceil()' Example
7.'cos()' Example
8.'E' Example
9.'exp()' Example
10.'floor()' Example
11.'isNaN()' Example
12.'LN10' Example
13.'LN2' Example
14.'log()' Example
15.'LOG10E' Example
16.'LOG2E' Example
17.'max()' Example
18.'MAX_VALUE' Example
19.'min()' Example
20.'MIN_VALUE' Example
21.'NEGATIVE_INFINITY' Example
22.'parseFloat()' Example
23.'parseInt()' Example
24.'PI' Example
25.'POSITIVE_INFINITY' Example
26.'pow()' Example
27.'round()' Example
28.'sin()' Example
29.'sqrt()' Example
30.'SQRT1_2' Example
31.'SQRT2' Example
32.'tan()' Example
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.