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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
7 + 50 = ?
Subscribe to this entry?

 
 [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: Sun May 05 23:01:30 2024 UTC