Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

32 bit unsigned int php

Does anyone know of a class/library/etc. that can simulate 32 bit unsigned integers on a 32 bit platform in PHP? I'm porting a C lib into PHP and it uses a lot of integers that are greater than the maximum for 32 bit signed int.

like image 251
Zeta Two Avatar asked May 08 '26 23:05

Zeta Two


1 Answers

Try the BC Math Library, which "supports numbers of any size and precision, represented as strings."

Good luck!

like image 60
Mike Cialowicz Avatar answered May 10 '26 14:05

Mike Cialowicz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!