A.bits()

Read(421) Label: sequence of bits, long, binary,

Description:

Convert a sequence of bit values to a sequence of long numeric values.

Syntax:

A.bits()

Note:

The function converts a sequence of binary bits A to a sequence of long numeric values, during which every 64 members is transformed to one long numeric member.

Parameter:

A

A sequence of binary bits

Option:

@b

When A consists of Boolean members, convert to 1 for true and to 0 for false

Return value:

A sequence of long numeric values

Example:

 

A

 

1

=192.(rand(2))

Randomly generate a sequence of binary bits.

2

=A1.bits()

Convert A1 to a sequence of long numeric values. For instance:

3

=[1,0,1,1].bits()

Return [-5764607523034234880].

4

=[true,false,true,true].bits@b()

Return [-5764607523034234880].