BitCompress function

Returns the integer made from the string argument, which contains a binary representation of "1"s and "0"s.

Namespace

logical

Input

String

Output

number(long)

Example

If mynumber contains the string "101100000", then the following two functions are equivalent, and return the number 352.

set-column val logical:BitCompress("101100000") set-column val logical:BitCompress(mynumber)



Created in 2020 by Google Inc.