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 <j...@febo.com> 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
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
-- 
Very Respectfully,

Dan CaJacob
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to