|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37150 mod operation return only integer part of the result
Submitted: 2006-04-20 16:37 UTC Modified: 2006-04-20 16:54 UTC
From: simon dot grenier at hotmail dot com Assigned:
Status: Not a bug Package: Math related
PHP Version: 5.1.2 OS: windows xp pro sp2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: simon dot grenier at hotmail dot com
New email:
PHP Version: OS:


 [2006-04-20 16:37 UTC] simon dot grenier at hotmail dot com
the mod operation in php return only the integer part of the result.

Reproduce code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Grade Activity 3</title>

echo 23.8%23;

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-20 16:54 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 14 12:01:28 2024 UTC