how do you convert and array of doubles into floats?

SpreadTooThin bjobrien62 at gmail.com
Fri Sep 15 13:40:34 EDT 2006


I have some code...

import array

a = array.array('d')
f = open('file.raw')
a.fromfile(f, 10)

now I need to convert them into floats (32 bit...) what do i do?




More information about the Python-list mailing list