convert 2 byte space to one byte

J

Julian Turner

M said:
Is it possible to convert 2 bite space to a single bite space in javascript?

MD

Hi

It is not quite clear from your question what you are looking for.

I assume by "bite" you mean "byte"?

If so JavaScript does not support a "byte" type as such.

It has:-

(a) String : which is a sequence of characters, each of which is a
16bit value.

(b) Number : which are IEEE-754 Doubles, with a resolution of 53 bits.

In either case you can use these to store byte values, and there are
bitwise operators in the language, such as & | ^ << >> to manipulate
them.

Regards

Julian Turner
 
J

Julian Turner

M said:
Is it possible to convert 2 bite space to a single bite space in javascript?

MD

Hi

It is not quite clear from your question what you are looking for.

I assume by "bite" you mean "byte"?

If so JavaScript does not support a "byte" type as such.

It has:-

(a) String : which is a sequence of characters, each of which is a
16bit value.

(b) Number : which are IEEE-754 Doubles, with a resolution of 53 bits.

In either case you can use these to store byte values, and there are
bitwise operators in the language, such as & | ^ << >> to manipulate
them.

Regards

Julian Turner
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top