The Math object is different from the above object. It can be said to be a common mathematics class, which has many mathematical methods used for various mathematical operations, but Math objects do not need to be constructed, you can directly use
ABS (x) function, which is used to return the absolute value of a number.ACOS (x) function returns the arc cosine of X. X ranges from 1 to-1, and the input value ranges from 0 to pie, in radians.The ASIN (x) function returns the arc sine of X. X
Returns the inverse hyperbolic sine of a number by the Asinh () function. The ASIN () function returns the inverse of a different value, and the result is a radian value between-PI/2 and PI/2. The Acosh () function returns the inverse hyperbolic
Common mathematical functions in php tutorials
The tanh () function returns the hyperbolic tangent.
SyntaxTanh (x) parameter descriptionX is required. A number.
DescriptionReturns the hyperbolic tangent of x, defined as sinh (arg)/cosh (arg ).
*/
function Description of PHP
ABS device () returns the absolute number 3rd
ACOs () returns the 3rd number of arccosine
Acosh () returns the inverse hyperbolic cosine of number 4th
Azeem () return to the 3rd of the inverse chord
Asinh () returns the
The tanh () function returns the hyperbolic tangent.SyntaxTanh (x) parameter descriptionX is required. A number.DescriptionReturns the hyperbolic tangent of x, defined as sinh (arg)/cosh (arg ).*/Echo tanh (-m_pi); // output-0.996272076221Echo "
1. ABS (X)
Returns the absolute value of X.
SQL> select abs (-1) A, ABS (1) B, ABS (0) C FROM DUAL;
A B C
------------------------------
1 1 02. ACOS (X)
Returns the arc cosine of X.
SQL> select acos (0) A, ACOS (0.5) B, ACOS (1) C FROM DUAL;
A B C
-
1, expression
1.1 The operand of the Tcl expression is usually an integer or a real number. An integer is generally in decimal format. However, if the first character of an integer is 0 (zero), TCL regards this Integer as an octal integer, if the
I bought the book "C standard library" during the summer vacation, but I did not study it carefully because I was studying GRE in New Oriental. At the beginning of the new semester, I had no time to take care of it because I learned SL. I just
1. Discard the fractional part and retain the integer part.Parseint (5/2)
2. rounded up. If there is a decimal number, add 1 to the integer part.
Math. Ceil (5/2)
3. rounding.
Math. Round (5/2)
4. Round down
Math. Floor (5/2)
Math object MethodFF:
ABS (x ):Basic syntax and crystal syntax.Parameter: X is the number or currency in which you want to return the absolute value.Return Value: Numeric ValueOperation: ABS (x) returns the absolute value of X.Example:ABS (1, 1.50)1.50 is returned.
ABS (-
PHP 5Math function
Introduction to PHP MathThe Math function can handle values in the range of integers and float.
InstallationThe PHP Math function is part of the PHP core. These functions can be used without installation.
PHP 5
The Math module implements a number of mathematical functions for floating-point numbers. These functions are generally a simple encapsulation of functions of the same name in the Platform C Library, so the results of calculations under different
Setcookie (name,value,expire,path,domain,secure): function sends an HTTP cookie to the client.Domain: Optional, specify the name of the cookieSecure: Optional rules whether to transfer cookies via secure HTTPS linksSetrawcookie
201./* + NOCACHE (TABLE )*/When a full table scan is performed, the CACHE prompts that the retrieval block of the table can be placed in the nearest least recently used LRU list in the buffer CACHE.For example:SELECT/* + FULL (BSEMPMS) NOCAHE
Js object-oriented is an important part of js. It is helpful for saving code, encapsulating it for ease of use, and performance. I hope you will learn it carefully. JavaScript uses "Object-Oriented Programming" or "Object-Oriented Programming. The
1.Date: Date functionProperties (1):constructor function Reference of the object being repairedPrototype properties and methods that can be added to an objectMethod (43):GetDay () returns the day ordinal of a week (0-6)GetYear () returns the year.
ASCII (str) returns the ASCII value of the first character of the string str (0 if str is an empty string) mysqlgt; selectASCII (
ASCII (str) returns the ASCII value of the first character of the string str (0 if str is an empty string) mysqlgt;
Oracle date functions:
Months_between: returns the difference of the month between two dates months_between ('01-EP-95 ', '11-Jan-94') ==> 19.6774194 add_months: Number of copies added to the date. add_months ('11-Jan-94 ', 6) ==> '11-JUL-94'
204. How do I obtain the ASCII value of the first character of a string?
ASCII (char)
Select ASCII ('abcde') from dual;
Result: 65
205. How do I get the characters specified by data value n?CHR (N)Select CHR (68) from dual;Result: d
206. How to
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.