BloombergLP::balm::MetricFormatSpec::setFormat

Set the printf-style formatting string used when formatting.

Synopsis

Declared in <balm_metricformat.h>

void
setFormat(char const* format);

Description

Set, to the specified format, the printf-style formatting string that may be applied when formatting values. The behavior is undefined unless format is null-terminated, contains a printf-style format string valid for a single floating-point value, and remains valid and unmodified for the lifetime of this object.

Parameters

NameDescription
formatnull-terminated printf-style format string