469,338 Members | 8,242 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,338 developers. It's quick & easy.

convert 2 byte space to one byte

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

MD
Oct 6 '06 #1
4 1839

M D wrote:
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

Oct 6 '06 #2

M D wrote:
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

Oct 6 '06 #3
JRS: In article <A6oVg.3527$H7.2251@edtnps82>, dated Fri, 6 Oct 2006
08:04:48 remote, seen in news:comp.lang.javascript, M D <md@md.com>
posted :
>Is it possible to convert 2 bite space to a single bite space in javascript?
S = S.replace(/ /, " ") // g before , to do all

See <URL:http://www.merlyn.demon.co.uk/js-valid.htm>

It's a good idea to read the newsgroup and its FAQ. See below.
--
John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4
<URL:http://www.jibbering.com/faq/>? JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htmjscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/TP/BP/Delphi/jscr/&c, FAQ items, links.
Oct 6 '06 #4
"M D" <md@md.comwrote in news:A6oVg.3527$H7.2251@edtnps82:
Is it possible to convert 2 bite space to a single bite space in
javascript?
Do you perhaps mean, is it possible to convert two sequential spaces to one
space?
Oct 7 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by David Lawson | last post: by
9 posts views Thread by mprocopio | last post: by
13 posts views Thread by Hako | last post: by
4 posts views Thread by Mason | last post: by
6 posts views Thread by Bob Altman | last post: by
12 posts views Thread by Peter | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.