[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
FN_NEG()
Calculate the two's complement of a number
------------------------------------------------------------------------------
Syntax
fn_neg( <nInt> | <cInt> ) -> nResult
Arguments
<nInt> may either be a numeric integer, or a 16-bit character string
that is the binary representation of a numeric integer.
Returns
<nResult>, a numeric
Description
The value returned is obtained by negating <nInt>
(i.e. obtaining the two's complement). If any parameters
are invalid, the function will return zero.
Examples
nX := 1
nNum := fn_neg( nX )
? nNum // -1
Source: N:\SRC\MISC\FNNEG.ASM
Author: Ted Means
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson