# Range of floating point io types

**URL:** <https://www.ruby-forum.com/t/range-of-floating-point-io-types/211332>\
**Category:** GNU Radio\
**Created:** [September 1, 2011, 4:10pm UTC](https://www.ruby-forum.com/t/range-of-floating-point-io-types/211332 "2011-09-01T16:10:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [September 1, 2011, 4:10pm UTC](https://www.ruby-forum.com/t/range-of-floating-point-io-types/211332/1 "2011-09-01T16:10:36Z")

</div>

How does the UHD library handle complex floating point numbers, that are  
out of range?

The doxygen documentation [1] says that the range of COMPLEX\_FLOAT32 is  
[-1.0,1.0],  
which means that both the real and imaginary part must be within this  
range, right?  
And what happens if you try to send values larger than 1.0?  
I would expect the sample to be rounded down to 1.0, but couldn’t tell  
from the documentation.

[1]  
[http://files.ettus.com/uhd\_docs/doxygen/html/classuhd\_1\_1io\_\_type\_\_t.html](http://files.ettus.com/uhd_docs/doxygen/html/classuhd_1_1io __type__ t.html)

---

<div class="post-metadata">

**Author:** ![SSPeter\_BjSSrn\_JSSr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e99b99/32.png) [@SSPeter\_BjSSrn\_JSSr](https://www.ruby-forum.com/u/SSPeter_BjSSrn_JSSr)\
**Post date:** [September 1, 2011, 5:34pm UTC](https://www.ruby-forum.com/t/range-of-floating-point-io-types/211332/2 "2011-09-01T17:34:30Z")

</div>

> The doxygen documentation [1] says that the range of COMPLEX\_FLOAT32 is  
> [-1.0,1.0],

Yes

> which means that both the real and imaginary part must be within this  
> range, right?

Correct but, the complex magnitude must not exceed 1.0, or else you may  
clip in the DSP.

> And what happens if you try to send values larger than 1.0?

truncation of the most significant bits

For example, the DQPSK block will transmit symbols at +/-1 +/-j. These  
constellation points will clip in the DSP of the FPGA if you have the  
cordic tuned to a non-zero frequency. I recommend that you characterize  
your output before using the max dynamic range of the DAC.

-josh
