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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 14:01:30 2024 UTC