ÄúµÄλÖãºÑ°ÃÎÍøÊ×Ò³£¾±à³ÌÀÖÔ°£¾VBScript£¾VBScript


objects constants operators statements functions properties methods






FUNCTION:  Abs()

Abs(Number)

The Abs function returns the absolute value for a number.

Negative numbers become positive. Positive numbers remain positive.

Code:
<% =Abs(-127.89) %>

Output:
127.89

Code:
<% =Abs(127.89) %>

Output:
127.89