Hi,
I am trying convert a byte array to a number and for large numbers,
I see that the bit shift is giving -ve results.
Can one of you please why we see this issue?

For example,

Code:
<script language="JavaScript">
    var myVar = 1000000;
    document.write("Bit shft Result: " + (myVar << 8));
    document.write("<br>");
    document.write("Multiplication Result: " + parseInt(myVar *256));
</script>
Output:
Bit shft Result : 256000000
Multiplication Result: 256000000


Upon adding one more zero to myVar, you see the issue I am talking about
Code:
<script language="JavaScript">
    var myVar = 10000000;
    document.write("Bit shft Result: " + (myVar << 8));
    document.write("<br>");
    document.write("Multiplication Result: " + parseInt(myVar *256));
</script>
Output:
Bit shft Result: -1734967296
Multiplication Result: 2560000000


Regards,
Sunny