From 91a1360e097c064c116fd6499fa8c2a9c4c4b4d7 Mon Sep 17 00:00:00 2001 From: Rolf Ahrenberg Date: Sat, 12 Apr 2014 23:01:46 +0300 Subject: [PATCH] Fixed the channel frequency value. --- femontools.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/femontools.c b/femontools.c index 6574238..5b76fc9 100644 --- a/femontools.c +++ b/femontools.c @@ -524,8 +524,9 @@ cString getAC3DialogLevel(int value) cString getFrequencyMHz(int value) { - while (value > 20000) value /= 1000; - return cString::sprintf("%d %s", value, tr("MHz")); + double freq = value; + while (freq > 20000.0) freq /= 1000.0; + return cString::sprintf("%s %s", *dtoa(freq, "%lg"), tr("MHz")); } cString getAudioSamplingFreq(int value)