Page 1 of 1

how to negate an arraydata

Posted: Thu Jun 21, 2018 5:24 am
by shameem
Hi All,
i was trying to negate pan but it is showing errors
for example: Util.arrayCopy((~pan),(short)0,dd,(short)0A,(short)8);
Can Anyone help.
Thanks in advance
Shameem

Re: how to negate an arraydata

Posted: Thu Jun 21, 2018 5:35 am
by happy123654
If you want to negate all data in an arraydata, you should negate them one by one.
eg: a[0] = ~a[0].