ABOUT ME

-

Today
-
Yesterday
-
Total
-


  • JavaScript Math Object
    웹&컴퓨팅 2007. 10. 25. 17:47



    JavaScript Math Object

    AJAX/JavaScript : 2007/07/09 15:55


    참조 : http://www.w3schools.com/js/js_obj_math.asp

    Matk 객체 메소드
    Method Description FF N IE
    abs(x) Returns the absolute value of a number 1 2 3
    acos(x) Returns the arccosine of a number 1 2 3
    asin(x) Returns the arcsine of a number 1 2 3
    atan(x) Returns the arctangent of x as a numeric value between -PI/2 and PI/2 radians 1 2 3
    atan2(y,x) Returns the angle theta of an (x,y) point as a numeric value between -PI and PI radians 1 2 3
    ceil(x) Returns the value of a number rounded upwards to the nearest integer 1 2 3
    cos(x) Returns the cosine of a number 1 2 3
    exp(x) Returns the value of Ex 1 2 3
    floor(x) Returns the value of a number rounded downwards to the nearest integer 1 2 3
    log(x) Returns the natural logarithm (base E) of a number 1 2 3
    max(x,y) Returns the number with the highest value of x and y 1 2 3
    min(x,y) Returns the number with the lowest value of x and y 1 2 3
    pow(x,y) Returns the value of x to the power of y 1 2 3
    random() Returns a random number between 0 and 1 1 2 3
    round(x) Rounds a number to the nearest integer 1 2 3
    sin(x) Returns the sine of a number 1 2 3
    sqrt(x) Returns the square root of a number 1 2 3
    tan(x) Returns the tangent of an angle 1 2 3
    toSource() Represents the source code of an object 1 4 -
    valueOf() Returns the primitive value of a Math object 1 2 4

    Math 객체 속성
    Property Description FF N IE
    constructor A reference to the function that created the object 1 2 4
    E Returns Euler's constant (approx. 2.718) 1 2 3
    LN2 Returns the natural logarithm of 2 (approx. 0.693) 1 2 3
    LN10 Returns the natural logarithm of 10 (approx. 2.302) 1 2 3
    LOG2E Returns the base-2 logarithm of E (approx. 1.414) 1 2 3
    LOG10E Returns the base-10 logarithm of E (approx. 0.434) 1 2 3
    PI Returns PI (approx. 3.14159) 1 2 3
    prototype Allows you to add properties and methods to the object 1 2 4
    SQRT1_2 Returns the square root of 1/2 (approx. 0.707) 1 2 3
    SQRT2 Returns the square root of 2 (approx. 1.414) 1 2 3

    Math 객체

    Math 객체는 산술연산 작업을 할 수 있도록 도와준다.

    Math 객체는 몇 몇 산술적인 변수들과 함수들을 가지고 있다. 따라서 별도의 Math 객체를 만들어 사용하지 않아도 된다.

    댓글 1

    • Favicon of http://www.hermesitalyz.com/ BlogIcon kelly hermes 2013.01.05 03:18

      좋은
      Today's weather is very good, go out for http://www.cheapmichaelkorsy.com/ michael kors clutch today, just the first time out, just sat sedan left.Zhuo palace gate,http://www.cheapmichaelkorsy.com/ the wedding team where, beat gongs and sound drums, percussion music, noisy let michael kors just want to frown.Not much The bridal sedan chair carried the world famous Zhuo home bales michael kors left, just behind what happens is they would never have thought of.

      http://www.cheapmichaelkorsy.com/ michael kors handbags outlet twist on the expensive Pink Necklace, and looked at the husband."Little red, this is not for you."Man the other fetched a necklace worn by michael kors neck, also made michael kors happy smile.michael kors looked at the woman in her extended hand painted color Cutex nail, push gently, behind the hungry dogs quickly made up...

      " http://www.cheapmichaelkorsy.com/ michael kors tote, I would like to ask why the ending of our cooperation?"michael kors looked at the Hao Jia Qi, slightly to the brow, "I suddenly change idea, is not willing to peace of mind as your company's Advertising Spokesperson."michael kors twist on the expensive Pink Necklace, and looked at the husband.

Designed by Tistory.