on 03-05-2008 8:02 AM
Hi,
Iam having a value 25000.00- in a variable called sum1.
which is a negative value.
i want to check whether it is a negative value or not.
i tried like
if sum1 LT 0.
statement.
else.
statement.
but this is not working, can anyone help me in this.
Thanks,
Rose.
Hi
Check whether the data type is of P or not if it is char then your code wont work convert it and use
Regards
Shiva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can also use the following math functions
abs -Absolute value of the argument arg
sign- Plus/minus sign of the argument arg: -1, if the value of arg is negative; 0 if the value of arg is 0; 1 if the value of arg is positive.
ceil -Smallest integer number that is not smaller than the value of the argument arg.
floor- Largest integer number that is not larger than the value of the argument arg.
trunc- Value of the integer part of the argument arg
frac- Value of the decimal places of the argument arg
acos -Arcuscosinus -1,1
asin- Arcussinus -1,1
atan- Arcustangens
cos- Cosinus
sin- Sinus
tan- Tangens
cosh- Hyperbelcosinus
sinh -Hyperbelsinus
tanh -Hyperbeltangens
exp -Exponential function for basis e -709, 710
log -Natural logarithm > 0
log10 -Logarithm for basis 10 > 0
sqrt -Square root
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi camilla,
for displaying you can use
&symbol(<)& Display Leading Sign to the Left
&symbol(>)& Display Leading Sign to the Right
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.