Your Guide to Professional
Web Site Design and Development

HTML Tips
HTML Codes
Web Development
Web Design Tips
JavaScript Codes
216 Web Safe Colors
CSS Tutorial
JavaScript Tutorial
ASCII Character Codes

 

| Web Site Development | HTML Codes | HTML Tips | Web Design TipsJavascript Snippets | 216 Safe Colors | Symbols | CSS Tutorial | JavaScript Tutorial |

JavaScript Tutorial: JavaScript Math Object Reference

Method

Description

abs(a) Supplies the absolute value of a number
acos(a) Supplies the arccosine of a number
asin(a) Supplies the arcsine of a number
atan(a) Supplies the arctangent of a as a numeric value between -PI/2 and PI/2 radians
atan2(a,b) Supplies the angle theta of a point as a numeric value between -PI and PI radians
ceil(a) Supplies the value of a number rounded up to the nearest number
cos(a) Supplies the cosine of a number
exp(a) Supplies the exponential value of a number
floor(a) Supplies the value of a number rounded down to the nearest number
log(a) Supplies the logarithm of a number
max(a,b) Supplies the number with the highest value
min(a,b) Supplies the number with the lowest value
pow(a,b) Supplies the value of one number (a) to the power of the second number (b)
random( ) Supplies a random number between 0 and 9
round(a) Supplies a number rounded to the nearest number
sin(a) Supplies the sine of a number
sqrt(a) Supplies the square root of a number
tan(a) Supplies the tangent of an angle
toSource(a) Refers to the source code of an object
valueOf( ) Supplies the primitive value of a math object


Previous

Next



  JavaScript Tutorial: An Introduction to JavaScript
  The Basics of JavaScript
  JavaScript Events
  JavaScript Variables and Arrays
  JavaScript Statements
  JavaScript Functions and Methods
  JavaScript Errors
  JavaScript Food Chain
  Writing JavaScript Code
  JavaScript Object Reference
  JavaScript Events Reference
  JavaScript Functions Reference
  JavaScript Math Object Reference
  JavaScript Array Object Reference
  JavaScript String Object Reference
  JavaScript Date Object Reference

Web Development Tutorials

  Cascading Style Sheets Tutorial: An Introduction to Cascading Style Sheets
  JavaScript Tutorial: An Introduction to JavaScript
  Web Development: A step by step guide to developing a successful Internet business
  HTML Codes Chart: Copy and paste HTML codes for your web page
  HTML Tips: Copy and paste special effect HTML codes for your web page
  Web Design Tips: Tips, tricks, and special effect codes for your web page
  JavaScript Code Snippets: Copy and paste special effect JavaScript codes for your web page
  216 Web Safe Color Chart: Hexadecimal and RGB Color Codes for your web page
  ASCII Character Codes Chart: American Standard Code for Information Interchange character codes chart