str()

Data / Conversion

Description

Converts an int, float, bool, or char to a std::string.

Syntax

std::string str(int v) std::string str(float v) std::string str(bool v) std::string str(char v)

Parameters

NameTypeDescription
vanyvalue to convert

Returns

std::string

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...