Hướng dẫn dùng php bcmod trong PHP
(PHP 4, PHP 5, PHP 7, PHP 8) bcmod — Get modulus of an arbitrary precision number Descriptionbcmod(string Parametersnum1 The dividend, as a string. num2 The divisor, as a string. Return Values Returns the modulus as a string, or Changelog
ExamplesExample #1 bcmod() example
Example #2 bcmod() with decimals
See Also
lauris at night dot lt ¶ 18 years ago
$a = (int)$mod.substr( $x, 0, $take );
drahoszdenek at gmail dot com ¶ 9 years ago
$eval->evaluate('10 % 2.1'); // 1.6 |