Rose::StringUtility::toBinary
Convert a number to a binary string.
Synopsis
Declared in <src/Rose/StringUtility/NumberToString.h>
template<typename Unsigned>
std::string
toBinary(
Unsigned value,
size_t nBits = 0,
size_t groupSize = 4,
std::string const groupSeparator = "_");
Return Value
Binary string.
Parameters
Name |
Description |
value |
Input value. |
nBits |
Bit width to display (0 means use value width). |
groupSize |
Group size for separators. |
groupSeparator |
Separator string between groups. |
Created with MrDocs