Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

convert low high to integer in js

function toNumber({ low, high }) {
  let res = high

  for (let i = 0; i < 32; i++) {
    res *= 2
  }

  return low + res
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #high #integer #js
ADD COMMENT
Topic
Name
5+8 =