php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47732 ceil function add incorrect characters at the end
Submitted: 2009-03-20 14:35 UTC Modified: 2009-03-20 16:04 UTC
From: egorich at junik dot lv Assigned: pajoye (profile)
Status: Not a bug Package: Math related
PHP Version: 5.2.9 OS: Windows 2003
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: egorich at junik dot lv
New email:
PHP Version: OS:

 

 [2009-03-20 14:35 UTC] egorich at junik dot lv
Description:
------------
When using ceil(3350/200) I get 2 more symbols (.:) at the end of the result;

Using PHP 5.2.9-1


Reproduce code:
---------------
echo ceil(3350/200);

Expected result:
----------------
17

Actual result:
--------------
16.:

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-03-20 14:40 UTC] pajoye@php.net
check your script, there is certainly some trailing characters (or badly enconded).

C:\Users\pierre\Documents\test\php529-1>php -r "echo ceil(3350/200);"
17
C:\Users\pierre\Documents\test\php529-1>
 [2009-03-20 16:00 UTC] pajoye@php.net
ok, seems that other are experiencing the same problem.

What is the last PHP version working correctly on your machine? Can you try with 5.2.8?

I also need to know the exact version of windows, which service pack, architecture (x86 or x64), etc.
 [2009-03-20 16:04 UTC] pajoye@php.net
Please reply in #47304 (duplicated).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 00:01:29 2024 UTC