Hex to dec in Javascript

In Progress Posted 4 years ago Paid on delivery
In Progress Paid on delivery

Hello, I need a short code in JavaScript for transform Hex to Dec as the picture shows (4 digits), but only take the numbers in the rectangule .

The example is like this :

function Decoder(bytes, port) {

var X1 = (bytes[2]<<8) | bytes[3];

return {

'X1' : X1,

}

}

JavaScript jQuery / Prototype HTML5 CSS HTML

Project ID: #21695970

About the project

4 proposals Remote project Active 4 years ago

4 freelancers are bidding on average $26 for this job

Jinzin

Dear Client, How are you? I have already read your description carefully. I can do your project perfectly with my rich experience of 7+ years and STRONG LOGIC. I'm a professional web developer who can implement your id More

$50 USD in 1 day
(37 Reviews)
5.9
honghv

Hello, I have viewed your request. I find it quite interesting. I will be happy to demo it in advance for you. I actually wrote the same function. Look forward to hearing from you. Thank you!

$15 USD in 1 day
(0 Reviews)
0.0