unbinary()

Data / Conversion

Description

Converts a binary string to an integer.

Syntax

int unbinary(std::string s)

Parameters

NameTypeDescription
sstd::stringbinary string

Returns

int

Related

Under the Hood

From Processing.h:

inline int unbinary(const std::string& s){ return std::stoi(s,nullptr,2); }