Skip to content

PHP 8.4 Incorrect result of bcdiv function. #17275

Description

@KonstantinPopov

Description

The following code:

<?php
bcdiv('0.03772321', '9650.0', 8);
bcdiv('0.03772321', '9650.0', 9); 

Resulted in this output:

"0.00003909"
"0.000003909"

But I expected this output instead:

"0.00000390"
"0.000003909"

PHP Version

PHP 8.4.2

Operating System

No response

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions