MCPcopy Create free account
hub / github.com/VCVRack/Rack / getUnit

Method getUnit

include/Quantity.hpp:69–71  ·  view source on GitHub ↗

The unit abbreviation of the quantity. Include an initial space character if you want a space after the number, e.g. "440 Hz". This allows space-less units, like "100%". */

Source from the content-addressed store, hash-verified

67 Include an initial space character if you want a space after the number, e.g. "440 Hz". This allows space-less units, like "100%".
68 */
69 virtual std::string getUnit() {
70 return "";
71 }
72
73 /** Returns a string representation of the quantity. */
74 virtual std::string getString();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected