redcore Posted November 19, 2007 Share Posted November 19, 2007 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 More sharing options...
Barand Posted November 19, 2007 Share Posted November 19, 2007 <?php $Value = "207375434645"; echo base_convert($Value, 10, 16); ?> Link to comment https://forums.phpfreaks.com/topic/77984-solved-dechex-number-too-long/#findComment-394746 Share on other sites More sharing options...
redcore Posted November 20, 2007 Author Share Posted November 20, 2007 bah, you rock sir! thank you very much, most appreciated Link to comment https://forums.phpfreaks.com/topic/77984-solved-dechex-number-too-long/#findComment-394800 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.