numpy array - convert hex to int

Luciano Ramalho luciano at ramalho.org
Sun Sep 8 11:16:26 EDT 2019


>>> int('C0FFEE', 16)
12648430

There you go!

On Sun, Sep 8, 2019 at 12:02 PM Sharan Basappa <sharan.basappa at gmail.com> wrote:
>
> I have a numpy array that has data in the form of hex.
> I would like to convert that into decimal/integer.
> Need suggestions please.
> --
> https://mail.python.org/mailman/listinfo/python-list



-- 
Luciano Ramalho
|  Author of Fluent Python (O'Reilly, 2015)
|     http://shop.oreilly.com/product/0636920032519.do
|  Technical Principal at ThoughtWorks
|  Twitter: @ramalhoorg



More information about the Python-list mailing list