<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>All:<BR>
<BR>
I'm getting different floating point values when I use numpy vs. unpack().<BR>
<BR>
frgba = numpy.frombuffer(<string of bytes>, dtype=float32)<BR>
buffer = unpack("!f", byte)<BR>
<BR>
frgba[0] != buffer[0]<BR>
<BR>
why? This is forcing me use the unpack() function since it's giving me the correct values. What am I doing wrong?<BR>
<BR>
-M<BR>
<BR>
<BR><br /><hr />Change the world with e-mail. <a href='http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ChangeWorld' target='_new'>Join the i’m Initiative from Microsoft.</a></body>
</html>