# How to calculate the Hamming weight of a binary string?

+0

−0

A presently unanswered question on Stack Overflow asks:

Does there exist a

popcountfunction in libreoffice calc?

and clarifies that "I often use BASE(A1;2;8) to show a number in binary".

## 3 comments

@pnuts if all you need is what format the binary string is in, then it's easy enough to say, right? You could easily give an example, such as "10110111" or something, no need to be roundabout and say that it's the result of the BASE function — Moshi 7 months ago

@pnuts ...does that...matter? — Moshi 7 months ago

@pnuts then that should be a clarification in the

answer, not the question — Moshi 7 months ago