rfc:adding_bcround_bcfloor_bcceil_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:adding_bcround_bcfloor_bcceil_to_bcmath [2023/10/01 12:11] sakirfc:adding_bcround_bcfloor_bcceil_to_bcmath [2023/11/30 08:21] (current) saki
Line 1: Line 1:
 ====== PHP RFC: Adding bcround, bcfloor and bcceil to BCMath ====== ====== PHP RFC: Adding bcround, bcfloor and bcceil to BCMath ======
-  * Version: 0.9+  * Version: 0.1.0
   * Date: 2023-10-01   * Date: 2023-10-01
   * Author: Saki Takamachi, saki@sakiot.com   * Author: Saki Takamachi, saki@sakiot.com
-  * Status: Draft+  * Status: Accepted
   * First Published at: https://wiki.php.net/rfc/adding_bcround_bcfloor_bcceil_to_bcmath   * First Published at: https://wiki.php.net/rfc/adding_bcround_bcfloor_bcceil_to_bcmath
  
Line 48: Line 48:
  
 Due to their nature, there is no point in setting the scale of the three functions proposed this time. Therefore, these functions ignore scale settings both semantically and implementationally. Due to their nature, there is no point in setting the scale of the three functions proposed this time. Therefore, these functions ignore scale settings both semantically and implementationally.
 +
 +You might think that it can be used to specify the precision of round, but scale does not accept negative values. This cannot be used because precision must accept negative values.
  
 ===== Backward Incompatible Changes ===== ===== Backward Incompatible Changes =====
Line 60: Line 62:
 ===== Proposed PHP Version(s) ===== ===== Proposed PHP Version(s) =====
 next PHP 8.x (Probably 8.4) next PHP 8.x (Probably 8.4)
 +
 +===== RFC Impact =====
 +==== To SAPIs ====
 +
 +None.
 +
 +==== To Existing Extensions ====
 +
 +Only BCMath is affected.
 +
 +==== To Opcache ====
 +
 +No impact.
 +
 +==== New Constants ====
 +
 +None.
 +
 +==== php.ini Defaults ====
 +
 +None.
 +
 +===== Open Issues =====
 +
 +None.
 +
 +===== Unaffected PHP Functionality =====
 +
 +There is no effect on anything other than BCMath.
 +
 +===== Future Scope =====
 +None.
 +
 +===== 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.
 +Voting started on 2023-11-15 and will end on 2023-11-30 00:00 GMT.
 +<doodle title="Adding bcround, bcfloor and bcceil to BCMath" auth="Saki Takamachi" voteType="single" closed="false" closeon="2023-11-30T00:00:00Z">
 +   * Yes
 +   * No
 +</doodle>
 +
 +===== Patches and Tests =====
 +
 +I am currently creating a prototype.
 +
 +===== Implementation =====
 +Yet.
 +
 +===== Rejected Features =====
 +
 +None.
  
 ===== References ===== ===== References =====
Line 67: Line 121:
 https://www.php.net/manual/en/function.floor.php https://www.php.net/manual/en/function.floor.php
 https://www.php.net/manual/en/function.ceil.php https://www.php.net/manual/en/function.ceil.php
 +
 +===== Changelog =====
 +
 +  * 0.1.0: created rfc
rfc/adding_bcround_bcfloor_bcceil_to_bcmath.1696162283.txt.gz · Last modified: 2023/10/01 12:11 by saki