Jump to content

[SOLVED] dechex - number too long


redcore

Recommended Posts

Now first off, I AM aware that the largest number that can be converted with dechex is "4294967295" - and the number I need to convert IS indeed larger than that...but I need to get this number converted, so I'm interested in hearing ideas on a workaround.

 

As it is now:

 

$Value = "207375434645";
echo dechex($Value);

Result: 488a0395 (wrong)

Proper result: 30488a0395 (right)

 

Any/all ideas are welcomed! :)

Link to comment
https://forums.phpfreaks.com/topic/77984-solved-dechex-number-too-long/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.