nf()
Data / String FunctionsDescription
Formats a number as a string with a specified number of digits.
Syntax
std::string nf(float v, int digits)
std::string nf(float v, int left, int right)
Parameters
| Name | Type | Description |
|---|---|---|
| v | float | the number to format |
| digits | int | number of decimal places or left digits |
Returns
std::stringUnder the Hood
Implementation in Processing.h / Processing.cpp:
Loading...