discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Rounding values in QT Number


From: Dan CaJacob
Subject: Re: [Discuss-gnuradio] Rounding values in QT Number
Date: Mon, 05 Mar 2018 22:16:32 +0000

I don't remember if the QT sink has this, but I seem to recall that some GUI sinks have "formatters" which are basically the same as the python formatter concept. 

On Mon, Mar 5, 2018 at 4:41 PM John Ackermann N8UR <address@hidden> wrote:
I hate to put such a dumb question to the list, but I'm going nuts
trying to do something that ought to be simple.

I am using a QT Number Sink to display dB values in float format.  It is
showing many more decimal places than have any meaning.  I'd like to
round the display to one or two decimal places.

I tried making an embedded python block to do the rounding and finally
succeeded (it was a long and painful process, and frankly I don't
understand why I had to do what I did to get it to work), but the number
sink is still printing all the extra decimal places, they're just now
set to zero.

Is there any trick to round or even just truncate the number of decimal
places shown in the QT Number Sink?

Thanks,
John

_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
--
Very Respectfully,

Dan CaJacob

reply via email to

[Prev in Thread] Current Thread [Next in Thread]