MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / formatTnfFrequency

Function formatTnfFrequency

src/gui/MainWindowHelpers.cpp:118–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118QString formatTnfFrequency(double freqMhz)
119{
120 const long long hz = tnfFrequencyHz(freqMhz);
121 const int mhzPart = static_cast<int>(hz / 1000000);
122 const int khzPart = static_cast<int>((hz / 1000) % 1000);
123 const int hzPart = static_cast<int>(hz % 1000);
124 return QStringLiteral("%1.%2.%3")
125 .arg(mhzPart)
126 .arg(khzPart, 3, 10, QChar('0'))
127 .arg(hzPart, 3, 10, QChar('0'));
128}
129
130QString formatTnfDepth(int depthDb)
131{

Callers 1

buildTnfTooltipFunction · 0.85

Calls 1

tnfFrequencyHzFunction · 0.85

Tested by

no test coverage detected