All Functions
Abs Function
FUNCTION: Sgn()
Sgn
(Number)
The
Sgn
function returns the sign of a number.
-1 indicates a negative number.
0 indicates the number zero.
1 indicates a positive number.
Code:
<% =Sgn(-127.89) %>
Output:
-1
Code:
<% =Sgn(0) %>
Output:
0
Code:
<% =Sgn(127.89) %>
Output:
1
Copyright 1999-2004 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information