For example, how to get the correct answer to 137438953472 & 137438953472?
Javascript returns 0 if operands are between 2^32 and 2^53(max int).
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Ok here’s what I came up with, only tested with unsigned integers < 2^53:
edit: nailed a bug when partial results are interpreted as signed
results confirmed to be correct with windows 64 bit calculator 😛