unbinary()
Data / ConversionDescription
Converts a binary string to an integer.
Syntax
int unbinary(std::string s)
Parameters
| Name | Type | Description |
|---|---|---|
| s | std::string | binary string |
Returns
intRelated
Under the Hood
From Processing.h:
inline int unbinary(const std::string& s){ return std::stoi(s,nullptr,2); }