Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- convert 16-byte hex "string" to dec in php
- Sergei Shelukhin
April 8, 2007, 6:53 pm
rate this thread
I have a string, 16 bytes long, representing a hex number.
I need to convert it to a number and put it into pgsql database; it
complicates the matters further cause pgsql doesn't support unsigned;
thus I have to subtract "magic" number (half the bigint range) from
the conversion result to put it into pgsql.
Is there any way to achieve this?