shifting operation

Results 1 to 2 of 2

Thread: shifting operation

  1. #1
    Join Date
    Dec 1969

    Default shifting operation

    can anybody tell me how to do operation such as C shifting bits left in javascript? i need to shift a 64 bit to the left 32 times...

  2. #2
    Join Date
    Dec 1969

    Default JavaScript same as C...

    &nbsp;<BR>a = b &#060;&#060; numberOfBits;<BR><BR>Except... <BR><BR>I don&#039t think that JS has any data type that can hold 64 bits!<BR><BR>It has double, but doubles are real numbers and can&#039t be shifted.<BR><BR>You might be out of luck on this one.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts