rfc:add_bcdivmod_to_bcmath

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rfc:add_bcdivmod_to_bcmath [2024/06/30 15:07] sakirfc:add_bcdivmod_to_bcmath [2024/10/24 13:12] (current) saki
Line 3: Line 3:
   * Date: 2024-06-30   * Date: 2024-06-30
   * Author: Saki Takamachi (saki@php.net)   * Author: Saki Takamachi (saki@php.net)
-  * Status: Under Discussion+  * Status: Implemented
   * First Published at: https://wiki.php.net/rfc/add_bcdivmod_to_bcmath   * First Published at: https://wiki.php.net/rfc/add_bcdivmod_to_bcmath
  
Line 31: Line 31:
  
 <PHP> <PHP>
-$results = bcdivmod('123', '2');+[$quot, $rem] = bcdivmod('123', '2');
  
-// $result[0] is '61' +// $quot is '61' 
-// $result[1] is '1'+// $rem is '1'
 </PHP> </PHP>
  
Line 85: Line 85:
 ===== Proposed Voting Choices ===== ===== Proposed Voting Choices =====
 As per the voting RFC a yes/no vote with a 2/3 majority is needed for this proposal to be accepted. As per the voting RFC a yes/no vote with a 2/3 majority is needed for this proposal to be accepted.
 +
 +Voting started on 2024-07-17 and will end on 2024-08-01 00:00 GMT.
 +
 +<doodle title="Add bcdivmod to BCMath" auth="Saki Takamachi" voteType="single" closed="false" closeon="2024-08-01T00:00:00Z">
 +   * Yes
 +   * No
 +</doodle>
  
 ===== Patches and Tests ===== ===== Patches and Tests =====
rfc/add_bcdivmod_to_bcmath.1719760077.txt.gz · Last modified: 2024/06/30 15:07 by saki