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/12/23 19:10,
3.133.136.95: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://sxlist.com/Techref/language/asp/vbs/vbscript5/vsfctAbs.htm"> Abs Function</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Welcome to sxlist.com! |
.