I have some software which takes as input the following format (which is doing it for MATLAB):
[typecast(single(doubleNumber),'uint8') 0]
where doubleNumber
is an arbitrary floating number. How can I produce this data with Python 2.7? My main problem is that I do not know what typecast does internally.