View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002264 | Xdebug | Uncategorized | public | 2024-04-23 16:52 | 2024-04-23 16:52 |
Reporter | connor | Assigned To | |||
Priority | low | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Product Version | 3.2.0 | ||||
Summary | 0002264: Rounding of fractional numbers | ||||
Description | The following source code rounds infinite decimal fractions on several php 8 and xdebug versions. It doesn't seem to truncate the decimal part (like converting to int would do), but does a proper rounding. The problem is that in the IDE, when I look at the value of the variable, it also shows the rounded value (see attached image). With Xdebug: Without Xdebug: | ||||
Steps To Reproduce | <?php $s = 342_500; | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Operating System | macos | ||||
PHP Version | 8.2.0-8.2.9 | ||||