php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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
Description:
------------
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" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Grade Activity 3</title>
</head>

<body>
<?php
echo 23.8%23;
?>
</body>
</html>


Expected result:
----------------
0.8

Actual result:
--------------
0

Patches

Pull Requests

History

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

.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 02 17:01:35 2024 UTC