Home » Community » People » saki »
saki

saki

Contributor Directory

RFCs

Language and policy proposals from this contributor
RFCs are part of the process by which decisions are made about PHP. For more information about the RFC process as well as viewing a full list of RFCs please visit the RFC section.

Allow int type argument to BCMath function

Author
Currently, BCMath functions only accept values as strings. If want to calculate an int type with BCMath, need to convert it to a string once, which incurs unnec...

Add bcdivmod to BCMath

Author
Target
8.4
BCMath has bcdiv() and bcmod(), and the operation must be performed twice to obtain both the quotient and remainder. This is also true for the BcMath\Number cla...

Add bcdivmod to BCMath

Yes
No
Yes
21 Votes (100%)
No
0 Votes (0%)

Fix up BCMath Number Class / Change GMP bool cast behavior

Author
Target
8.4
Regarding RFC: Support object type in BCMath, I received several comments and suggestions, so I created this RFC to respond to them.

Fix up BCMath Number Class

Yes
No
Yes
18 Votes (100%)
No
0 Votes (0%)

Change GMP bool cast behavior

Yes
No
Yes
19 Votes (100%)
No
0 Votes (0%)

Support object type in BCMath

Author
Target
8.4
BCMath currently only supports procedural functionality and does not support object types. Object-based programming is mainstream these days, so it's a bit outd...

Support object type in BCMath

Yes
No
Yes
18 Votes (86%)
No
3 Votes (14%)

Initial value for implicit rounding mode

PHP_ROUND_HALF_UP
PHP_ROUND_TOWARD_ZERO
PHP_ROUND_HALF_UP
16 Votes (94%)
PHP_ROUND_TOWARD_ZERO
1 Votes (6%)

Correctly name the rounding mode and make it an Enum

Author
Target
8.4
There are eight rounding modes in the current master branch (8.4):

Add the RoundingMode enum as described?

Yes
No
Yes
34 Votes (100%)
No
0 Votes (0%)