[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
SIGN()
To return the sign of a number.
------------------------------------------------------------------------------
Syntax
SIGN(<nValue>) -> nSign
Arguments
<nValue> is a numeric value.
Returns
SIGN() returns the sign of a value.
For a positive value, SIGN() returns +1.
For a negative value, SIGN() returns -1.
For zero, SIGN() returns 0.
Description
SIGN() is used to determine if a number is positive, negative, or
neutral (zero).
Examples
? Str( SIGN( 5), 2, 0) // returns 1
? Str( SIGN(-5), 2, 0) // returns -1
? Str( SIGN( 0), 2, 0) // returns 0
Files: CALC.LIB
Author: Touchstone Business Creations CompuServe ID: 73670,2561
28613 River Glen Ct. #1
Menifee, CA 92584-8987 USA
(909) 679-3364
Owner : (c) Copyright, 1991,92,93 Touchstone Business Creations
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson