php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5618 Floating point number not working
Submitted: 2000-07-15 08:59 UTC Modified: 2000-07-15 10:48 UTC
From: hgoba at freemail dot hu Assigned:
Status: Closed Package: Other
PHP Version: 4.0 Release Candidate 1 OS: Win98 or Win98SE
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: hgoba at freemail dot hu
New email:
PHP Version: OS:

 

 [2000-07-15 08:59 UTC] hgoba at freemail dot hu
<?php

  $num = 3.14;
  echo $num; //this prints out 3

?>

This error occurs with the default
ini file, but this prints 3.14 with PHP3.0.16.

This is the case for all float thing, for
example placing a float element in an
array places the integer part of the num... 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-15 10:48 UTC] sterling at cvs dot php dot net
Fixed in 4.0.1, upgrade to 4.0.1pl2.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon May 12 05:01:28 2025 UTC