Learning Dynamic Web Technology asp: Understanding Mathematical Functions

Source: Internet
Author: User
Tags abs cos functions log mathematical functions sin square root
Dynamic | functions | Web page

In this ASP's mathematical function, we will be in the form of tables, let you know about the ASP can be used in the mathematical function, which includes the absolute value of a number, the square root of a number, the angle of the sine, cosine and so on.

Function Grammar 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 sinusoidal value of an angle
Cos Cos (num) Returns the cosine of an angle
Tan Tan (num) Returns the tangent of an angle
Atn ATN (num) Returns the tangent value of an angle
Log Log (num) Returns the pair value of a number
Int Int (num) Returns the first integer less than or equal to number by rounding the function
FormatNumber FormatNumber (NUM1,NUM2) A number converted to a specified number of decimal places (num2)
Rnd Rnd () Returns a random number from 0 to 1
Ubound Ubound (array name, number of dimensions) Returns the maximum number of subscripts for an array, with only one dimension, and the number of dimensions can be omitted.



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.