|
Neg | ||
NegResult = Neg(InputValue) | ||
Parameters: InputValue = The value to be negated |
||
Returns: NegResult = The value converted to negative |
||
The Neg() function takes a positive integer or floating point value and will negate it. If the value is already negative, Neg() returns this value unchanged. FACTS: * The NEG function performs is the opposite of the ABS function, where ABS returns a positive value, NEG always returns a negative. * Note: You can also negate a variable / function result by placing the - symbol in front of it or by multiplying it by -1. See example bellow. Mini Tutorial:
This example would output.
|
Related Info: | Abs | GetSign | Sgn : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |