PHP 8.1.0 RC 2 available for testing

Вычисления над целыми числами с произвольной точностью (GNU Multiple Precision)

add a note add a note

User Contributed Notes 1 note

9 years ago
Be careful with GMP - it considers leading zeros in a number string as meaning the number is in octal, whereas 'bc' doesn't:

  gmp_strval("000100", 10) => 64

  bcmul("000100", "1") => 100
To Top