[ncl-talk] bit set function in NCL?
Adrian Tompkins
tompkins at ictp.it
Tue Sep 5 10:17:01 MDT 2017
Apologies, another bit related question.
Are there operations in NCL that allow you to set, clear and compare
bits logically (and, or, xor etc)? And if not, any chance they could be
put on the implementation "waiting list" please?
thanks, adrian
On 08/18/17 13:51, Adrian Tompkins wrote:
> I found the answer: getbitsone
>
> On 08/18/17 12:44, Adrian Tompkins wrote:
>> Can I ask if there is a bit test function in NCL? I can't see one in the
>> function list. Some thing along the lines of :
>>
>> logical function btest (
>> i : integer or long
>> ibit : integer
>> }
>>
>> Arguments:
>> i : input integer
>> ibit : the bit number to test
>>
>> Return value:
>> logical set to True if ibit is set.
>>
>> thanks,
>>
>>
>
More information about the ncl-talk
mailing list