|
||||||
| PHP Forum Use this forum to discuss all aspects of PHP Development. PHP is a server-side, cross-platform, HTML embedded scripting language that lets you create dynamic web pages. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
1532515508 ^ -3955803181 = 1332703079 but in php it equals... 1532515508 ^ -3955803181 = -614968140 Does anybody know why? |
|
|||||
|
It depends on the number of bits used to represent those values. If they are using a different number of bits, you will get different results.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum Programming is a branch of mathematics. My CodeCall Blog | My Personal Blog |
|
|||
|
Never mind... JavaScript was using unsigned integers while Php was using Signed... At least I think that's what was happening... This fixed it... Code:
function _unSign($i1) {
if(0x7fffffff < $i1) {
$i1 -= 0xffffffff + 1.0;
}elseif (-0x80000000 > $i1) {
$i1 += 0xffffffff + 1.0;
}
return $i1;
}
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP Vs AJAX | Megrisoft | AJAX | 28 | 05-27-2009 12:24 PM |
| Beginning PHP | Xav | PHP Forum | 109 | 06-12-2008 11:06 AM |
| PHP accessing through remotely javascript from another website | deny | MarketPlace | 4 | 01-28-2008 08:02 AM |
| Javascript accessing PHP | Ronin | JavaScript and CSS | 0 | 11-08-2006 06:29 PM |
Algorithms and Data Structures
Programming Language Popularity
Code Collaboration
Podnet IRC Network
AmpHosted
Goal #1: 1,000 Blogs
Goal #2: 1,000 Wiki Pages
Goal #3: 300,000 Posts
Goal #4: 20,000 Threads
Done: 30%, 23%, 55%, 75%