[Numpy-discussion] binary to ascii

G Jones glenn.caltech@gmail....
Tue Nov 29 15:14:23 CST 2011


With pure python you can do:

chr(int('01000001', base=2))

'A'


On Tue, Nov 29, 2011 at 12:13 PM, Alex Ter-Sarkissov <ater1980@gmail.com>wrote:

> hi eveyone,
>
> is there a simple command in numpy similar to matlab char(bin2dec('//some
> binary value//')) to convert binary to characters and back?
>
> thanks
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20111129/3a04e104/attachment.html 


More information about the NumPy-Discussion mailing list