MCPcopy Create free account
hub / github.com/analogdevicesinc/scopy / getFormatAttributes

Method getFormatAttributes

gui/src/plot_utils.cpp:96–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96void PrefixFormatter::getFormatAttributes(double value, QString &prefix, double &scale) const
97{
98 int index = findPrefixIndex(value);
99
100 prefix = m_prefixes[index].first;
101 scale = m_prefixes[index].second;
102}
103
104QString PrefixFormatter::getFormatedMeasureUnit(double value)
105{

Callers 2

labelMethod · 0.80
labelMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected