‎2008 Jun 06 4:18 PM
Hi Friends:
I've to put a check like this:
if komvd-kbetr is a negative value.
then I've to convert it to a positive value.
Plz suggest me. Points will be rewarded.
REgards:
‎2008 Jun 06 4:19 PM
Hi,
maybe like this
IF komvd-kbetr < 0.
komvd-kbetr = komvd-kbetr * ( -1 ).
ENDIF.Regards Rudi
‎2008 Jun 06 4:19 PM
Hi,
maybe like this
IF komvd-kbetr < 0.
komvd-kbetr = komvd-kbetr * ( -1 ).
ENDIF.Regards Rudi
‎2008 Jun 06 4:22 PM
Hi
U can always convert to absolute (so positive) value, in this way u don't need any control:
komvd-kbetr = abs( komvd-kbetr ).Or u can check if it's negative and so moltiply for -1:
if komvd-kbetr < 0.
komvd-kbetr = - komvd-kbetr.
endif. Max
Edited by: max bianchi on Jun 6, 2008 5:22 PM
‎2008 Jun 06 4:23 PM
‎2008 Jun 06 4:24 PM
hi check this..
parameters:P_int type i.
if p_int lt 0.
p_int = p_int * ( - 1 ).
write:/ p_int .
else.
write:/ p_int.
endif.