php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41424 give solution
Submitted: 2007-05-18 04:03 UTC Modified: 2007-05-23 04:24 UTC
From: sumathi at gofrugaltech dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.2.2 OS: linux
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: sumathi at gofrugaltech dot com
New email:
PHP Version: OS:

 

 [2007-05-18 04:03 UTC] sumathi at gofrugaltech dot com
Description:
------------
DEAR SIR,
i AM TRYING THIS IN PHP 4 
 -3256362460 ^ 195405023 =910327547
PHP 5
-3256362460 ^ 195405023 :-1952078625

WHY THIS DIFFERENCE.PLEASE HELP ME 

Reproduce code:
---------------
i AM TRYING THIS IN PHP 4 
 -3256362460 ^ 195405023 =910327547
PHP 5
-3256362460 ^ 195405023 :-1952078625


Expected result:
----------------
EXPECTED RESULT 910327547

Actual result:
--------------
ACTUAL RESULT -1952078625

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-05-18 11:57 UTC] tony2001@php.net
-3256362460 is float.
 [2007-05-23 04:24 UTC] sumathi at gofrugaltech dot com
I tried with type cast i did get it.
give the solution 
to get the expected result.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 21 23:00:03 2025 UTC