[#BloombergLP-balm-MetricFormatSpec-2constructor-0d]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/MetricFormatSpec.adoc[MetricFormatSpec]::MetricFormatSpec
:relfileprefix: ../../../
:mrdocs:

Create a metric format spec having the specified `scale` and `format`&period;

== Synopsis

Declared in `&lt;balm&lowbar;metricformat&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
MetricFormatSpec(
    float scale,
    char const* format);
----

== Description

The `scale` indicates the multiplier that may be used when formatting values, and `format` must be a `printf`&hyphen;style format string for formatting a single floating&hyphen;point value&period; The behavior is undefined unless `format` is null&hyphen;terminated, contains a `printf`&hyphen;style format string valid for a single floating&hyphen;point value, and remains valid and unmodified for the lifetime of this object&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *scale*
| multiplier applied when formatting values
| *format*
| null&hyphen;terminated `printf`&hyphen;style format string
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
