php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27924 CAST PROBLEM
Submitted: 2004-04-08 19:35 UTC Modified: 2004-04-08 19:37 UTC
From: roberto at spadim dot com dot br Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.0.0RC1 OS: linux 2.4.22
Private report: No CVE-ID: None
 [2004-04-08 19:35 UTC] roberto at spadim dot com dot br
Description:
------------
casting to double make variable with error... like:
$a="0";
$b=(double)($a);
echo "".$b;
// this give me 
// -0


Reproduce code:
---------------
<?
$a="0";
$b=(double)($a);
echo "".$b;
?>

Expected result:
----------------
0

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

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-08 19:37 UTC] sniper@php.net
Works fine here. (and you gave way too little information about your system for us to process this bug report further)

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Aug 16 07:01:28 2024 UTC