Search Results
Prior to PHP 7.3.0, bcmul () may return a result with fewer digits after the decimal point than the scale parameter would indicate. This only occurs when the result doesn't require all of the precision allowed by the scale.
- Bcsub
Subtract one arbitrary precision number from another bcsub...
- Bcsub
Jul 11, 2025 · The bcmul () function in PHP is an inbuilt function and is used to multiply two arbitrary precision numbers. This function accepts two arbitrary precision numbers as strings and returns the multiplication of the two numbers after scaling the result to a specified precision.
Voir aussi bcdiv () - Divise deux nombres de grande taille Fonctions BC Math bcpow Manuel PHP
Gladir.com - Manuel pour le langage de programmation PHP. BCMUL : Cette fonction permet d'effectuer la multiplication de deux nombres avec un haut niveau de précision arithmétique.
Before PHP 7.3.0 bcmul () may return a result with fewer digits after the decimal point than the scale parameter would indicate. This only occurs when the result doesn't require all of the precision allowed by the scale.
Parameters left_operand The left operand, as a string. right_operand The right operand, as a string. scale This optional parameter is used to set the number of digits after the decimal place in the result. You can also set the global default scale for all functions by using bcscale ().
People also ask
What is bcmul function in PHP?
What does bcmul do?
Why does bcmul return a result with fewer digits after a decimal?
What happens if scale is null in bcmath?
Prior to PHP 7.3.0, bcmul () may return a result with fewer digits after the decimal point than the scale parameter would indicate. This only occurs when the result doesn't require all of the precision allowed by the scale.
