The mathematical function of ASP

Source: Internet
Author: User
Tags abs array cos functions integer numeric value sin square root
Mathematical functions of function ASP
Common mathematical functions:

function Syntax function
ABS ABS (NUM) returns the absolute value of a number
SQR squ (num) returns the square root of a number
Sin sin (num) returns the sine value of the angle
Cos cos (num) returns the cosine of the angle
Tan Tan (num) returns the tangent of the angle
Atn Atn (num) returns the tangent value of the angle
Log log (num) returns the numeric value of a number
int int (num) takes an integer function that returns the first integer less than or equal to number
FormatNumber FormatNumber (num1,num2) to a number that specifies the number of decimal places (num2)
Rnd Rnd () returns a random number from 0 to 1
Ubound Ubound (array name, dimension) returns the maximum subscript number of an array, which has only one dimension and can omit dimensions







Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.