JS has a built-in object--math object, in some cases very useful, let us analyze:
Math Common Properties (note to capitalize):
e returns the arithmetic constant E, that is, the base of the natural logarithm (approximately equal to 2.718)LN2
Property:
The function reference of the object established by constructor
Prototype attributes and methods that can be added to an object
E Euler constant, base of natural logarithm (approximately equal to 2.718)
The natural logarithm of the LN2
Quick query of js functions allows you to quickly find related functions. The abs method returns the absolute value of a number.
The acos method returns the arc cosine of a number.
The anchor method adds an HTML anchor with the NAME attribute at
JavaScript is a programming language, the browser has built-in JavaScript interpreter, so in the browser according to the JavaScript language rules to write the corresponding code, the browser can explain and make corresponding processing.First, the
ObjectiveJavaScript is a scripting language belonging to the Web, and is used by millions of of pages to improve design, validate forms, detect browsers, create cookies, and more.How to write 1. Existence formMethod One: Exists in the JS file, which
Introduction to JavaScriptJavaScript is a literal-translation scripting language, which is a dynamic type, a weak type, a prototype-based language, and a built-in support type. Its interpreter, known as the JavaScript engine, is widely used as a
First, JavaScript introductionJavaScript is a literal-translation scripting language, which is a dynamic type, a weak type, a prototype-based language, and a built-in support type. Its interpreter, known as the JavaScript engine, is widely used as a
1. discard the fractional part and keep the integer part parseInt (5/2) 2. rounded up. If there is a decimal number, add 1Math to the integer. ceil (5/2) 3, rounded down. math. round (5/2) 4, round down Math. floor (5/2) Math object method FF:
In Javascript, mathematical methods can be divided into the following types:Constans (constant), power functions (multiplication function), trigonometic functions (trigonometric function), rounding functions (rounding function), random numbers
In Javascript, mathematical methods can be divided into the following types:Constans (constant), power functions (multiplication function), trigonometic functions (trigonometric function), rounding functions (rounding function), random numbers
1 JavaScript Object Properties and methods summary2Date: 2015-03-06Editor: www.jquerycn.cn3 In detail, JavaScript Object properties and Object methods related knowledge, including JavaScript strings, arrays, dates and other properties of the object
I. mathematical functions ABS (x )?? Returns the absolute value BIN (x)? of x )?? Returns the binary value of x (OCT returns octal, HEX returns hexadecimal) CEILING (x )?? Returns the minimum integer EXP (x )?? Returns the x power FLOOR (x) of e
1. mathematical function ABS (x) returns the absolute value BIN (x) of x and returns the binary value of x (OCT returns octal, HEX returns hexadecimal) CEILING (x) returns the x power FLOOR (x) of the smallest integer value EXP (x) returned value e (
1.NumberJavaScript has only one numeric type, can have decimals or not, and can use scientific notation.var y=123e5; // 12300000 var z=123e-5; // 0.00123JavaScript is not a type language. Unlike many other programming languages, JavaScript does
This article provides a detailed summary of Javascript Object attribute methods. For more information, see.
Array: an ordered set of series Elements
Attribute:
Length: used to obtain the number of array elements, that is, the maximum subscript plus
1.Array Property:constructor function reference for objects created byprototype properties and methods that can be added to an objectindex for an array created by a regularexpression match, the zero-based index of the match in the string.input for
See the original: Https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF1. Built-in operators1.1 Relational operators
Operator
Type
Description
A = B
All primitive types
Returns True if A
HTML Dom tutorial 48-javascript math object
Math objects are not classes of objects like date and string, so there is no constructor math (). functions like math. Sin () are just functions, not methods of an object. 1: Math object Method
Document directory
Ecmascript Basics
Ecmascript Operator
Ecmascript statement
Ecmascript Function
Boolean object
Number object
String object
Array object
Math object
Date object
Regexp object
The javascript interpreter in Flash uses
/**************** From "Tian hongchuan "**************** *****/Http://www.cnblogs.com/thcjp/archive/2006/08/21/482606.html
Array: an ordered set of series elements;
Attribute:
Length: used to obtain the number of array elements, that is, the maximum
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.