<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1126" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Rereading the numeric docs I see the reference to
types Float, Float32, Float64 -- which make sense, however I am curious to
understand the usefulness of types Float0, Float8 and Float16 which all seem
synonyms for Float32. Was there some thinking that there would be a
converter written for 8bit floats?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>>>> from Numeric import *<BR>>>>
a = array([1,2,3,4],Float32)<BR>>>>
fromstring(a.tostring(),Float32)<BR>array([ 1., 2., 3.,
4.],'f')<BR>>>> fromstring(a.tostring(),Float)<BR>array([
2.00000047, 512.00012255]) # corrupt, as would be
expected<BR>>>> fromstring(a.tostring(),Float0) #seems to convert back
as if Float0 == Float32<BR>array([ 1., 2., 3.,
4.],'f')<BR>>>> fromstring(a.tostring(),Float8)<BR>array([ 1.,
2., 3., 4.],'f')<BR>>>>
fromstring(a.tostring(),Float16)<BR>array([ 1., 2., 3.,
4.],'f')<BR>>>><BR></FONT></DIV></BODY></HTML>