discuss-gnuradio
[Top][All Lists]
Advanced

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

Conversion from char (byte) to float


From: Marcin Puchlik
Subject: Conversion from char (byte) to float
Date: Fri, 20 Aug 2021 11:24:30 +0200

Conversion from byte to float works wrong (in my opinion) for byte variables greater than 127. Correct me if I'm wrong: char/byte range is from 0 to 255 (included). In GNU Radio, after conversion from char/byte variable type (that is greater than 127) to float, the result is negative. Seems like range for byte in GNU Radio is from -128 to 127. Can somebody confirm it? I am asking for clarification. 

reply via email to

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