Search Results

  1. Parameters ¶ num1 The left operand, as a string. num2 The right operand, as a string. scale This parameter is used to set the number of digits after the decimal place in the result. If null, it will default to the default scale set with bcscale (), or fallback to the value of the bcmath.scale INI directive.

    • Bcadd

      Parameters ¶ num1 The left operand, as a string. num2 The...

    • Bcmul

      Prior to PHP 7.3.0, bcmul () may return a result with fewer...

    • Bcdiv

      Parameters ¶ num1 The dividend, as a string. num2 The...

    • Bccomp

      Parameters ¶ num1 The left operand, as a string. num2 The...

    • Bcmod

      Get modulus of an arbitrary precision number bcmod (PHP 4,...

    • Bcpow

      Before PHP 7.3.0 bcpow () may return a result with fewer...

    • Bcpowmod

      bcpowmod (PHP 5, PHP 7, PHP 8) bcpowmod — Raise an arbitrary...

    • Bcscale

      bcscale (PHP 4, PHP 5, PHP 7, PHP 8) bcscale — Set or get...

  2. Jul 11, 2025 · The bcsub () function in PHP is an inbuilt function and is used to subtract one arbitrary precision number from another. This function accepts two arbitrary precision numbers as strings and returns the subtraction of the two numbers after scaling the result to a specified precision.

  3. Simple usage example of `bcsub ()`. The bcsub function in PHP is used to subtract one arbitrary precision number from another. This function is specifically designed for working with numbers that have a large number of digits. It accurately performs subtraction operations and returns the difference as a string.

  4. PHP Editor Review - Php Manual Function bcsub : PHP Developer, PHP Editors and PHP IDE list, biggest Php Editor and IDE list on the net. All Php Editors and IDEs are fully reviewed.

  5. 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. If omitted, it will default to the scale set globally with the bcscale function, or fallback to 0 if this has not been set.

  6. PHP 8.2.10 is one of the latest versions of PHP, which brings a number of improvements and new features. In this article we will discuss some of the outstanding new features and improvements in this version. ...

  7. (PHP 3, PHP 4 , PHP 5) bcsub -- Subtract one arbitrary precision number from another