Hi again,
On 22.05.23 13:55, Robert Landers wrote:
New function(s) on the other hand sounds like an ugly solution as well
only helping people explicitly searching for it after they got bitten at
least once.
What about deprecating round() in favor of round_float() and
round_int()? or something.
On Sun, May 21, 2023 at 4:21 PM Larry Garfield
wrote:
>
> Having recently been bitten by floor() returning a float even though the
> value that comes back is logically an int, I would be fully in support of
> "and returns an int" versions of these functions in core.
>
What about adding a third,
> New function(s) on the other hand sounds like an ugly solution as well
> only helping people explicitly searching for it after they got bitten at
> least once.
What about deprecating round() in favor of round_float() and
round_int()? or something.
Robert Landers
Software Engineer
Utrecht NL
--
On 21.05.23 17:20, Larry Garfield wrote:
On Sun, May 21, 2023, at 7:18 AM, Rowan Tommins wrote:
On 21 May 2023 13:00:30 BST, Dan Ackroyd wrote:
On Sun, 21 May 2023 at 06:16, Marc wrote:
Do you think this could be an acceptable BC-break
No. Suggesting changing a 30 year old maths operations
On Sun, May 21, 2023, at 7:18 AM, Rowan Tommins wrote:
> On 21 May 2023 13:00:30 BST, Dan Ackroyd wrote:
>>On Sun, 21 May 2023 at 06:16, Marc wrote:
>>>
>>> Do you think this could be an acceptable BC-break
>>
>>No. Suggesting changing a 30 year old maths operations is a huge BC break.
>>
>>> or
On 21 May 2023 13:00:30 BST, Dan Ackroyd wrote:
>On Sun, 21 May 2023 at 06:16, Marc wrote:
>>
>> Do you think this could be an acceptable BC-break
>
>No. Suggesting changing a 30 year old maths operations is a huge BC break.
>
>> or should this be a different function?
>
>Just make your own that
On Sun, 21 May 2023 at 06:16, Marc wrote:
>
> Do you think this could be an acceptable BC-break
No. Suggesting changing a 30 year old maths operations is a huge BC break.
> or should this be a different function?
Just make your own that does precisely what you want...
cheers
Dan
Ack
--
PHP I