Microsoft® Visual Basic®
Scripting Edition Abs Function |
Language Reference Version 1
|
Returns the absolute value of a number.
Abs(number)The number argument can be any valid numeric expression. If number contains Null, Null is returned; if it is an uninitialized variable, zero is returned.
The absolute value of a number is its unsigned magnitude. For example, Abs(-1) and Abs(1) both return 1.The following example uses the Abs function to compute the absolute value of a number:
Dim MyNumber MyNumber = Abs(50.3) ' Returns 50.3. MyNumber = Abs(-50.3) ' Returns 50.3.
file: /Techref/language/asp/vbs/vbscript5/vsfctAbs.htm, 3KB, , updated: 1999/5/18 07:44, local time: 2024/11/29 18:17,
18.118.154.237:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.ecomorder.com/techref/language/asp/vbs/vbscript5/vsfctAbs.htm"> Abs Function</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to massmind.ecomorder.com! |
.