abs( ) Function

Description:
  The abs() function returns the absolute value (always positive) of the value .

Syntax:
  retval = abs ( nValue )

Parameters:
  numeric: nValue Value to get absolute value of
  numeric: Retval Absolute value of nValue.

Platforms:
  Windows, DOS, Internet Active Pages



Example:

	local var1, var2, var3   // Initialize Variables
	var2 = 0                 // Setting variable type to numeric
	var3 = (var2 + prompt("Test Number", "" , 15 ))  // Obtaining user input (var3)
	var1 = abs( var3 )  	 // Returns the absolute value of (var3)
	
	println( var1 )	 	 // Print results to screen

  

(c) 2000-2001 by West Coast Web Adventures, Inc., All Rights Reserved