Numeric - Multiply a byte array by a float.

Kamilche klachemin at home.com
Tue Jul 13 23:06:46 EDT 2004


I have a need to multiply all the bytes in a Numeric array, by a
float, such as .9, .8, etc. I can't figure out a way to do that.

Does anyone have a clue how this is accomplished? I need the resulting
array to be truncated to an array of bytes.

Thanks!

--Kamilche



More information about the Python-list mailing list