bps to hex

S

species8350

Guest
I have calulated 300 bps as 12c (by calculator)

But the answer is 0x0000012c, why does the calculator not give this?

I'd expect 0000012c

Sp.
 
On 19 Aug 2004 02:19:30 -0700, not_here.5.species8350@xoxy.net
(species8350) wrote:

I have calulated 300 bps as 12c (by calculator)

But the answer is 0x0000012c, why does the calculator not give this?

I'd expect 0000012c
---
Would you also, in base 10, expect 10*10 to be 000000100?

--
John Fields
 
On 19 Aug 2004 02:19:30 -0700, not_here.5.species8350@xoxy.net
(species8350) wrote:

I have calulated 300 bps as 12c (by calculator)

But the answer is 0x0000012c, why does the calculator not give this?

I'd expect 0000012c

Sp.
The correct answer is approximately

0x0000000000000000000012C.0000000000000000

John
 
I have no idea why you are expressing bits per second in hexadecimal.

But just as in decimal, leading zeroes in hex are optional.

2 + 2 = 4, or 04, or 000000000004, or however you want to write it.

"species8350" <not_here.5.species8350@xoxy.net> wrote in message
news:2f3c31c0.0408190119.7f2b66b6@posting.google.com...
I have calulated 300 bps as 12c (by calculator)

But the answer is 0x0000012c, why does the calculator not give this?

I'd expect 0000012c

Sp.
 
On Thu, 19 Aug 2004 02:19:30 -0700, species8350 wrote:

I have calulated 300 bps as 12c (by calculator)

But the answer is 0x0000012c, why does the calculator not give this?

I'd expect 0000012c

Sp.
In unix, and the C language I think, 0x0... is the standard prefix for a
hex number. Not quite sure what your question is.

--
http://www.niftybits.ukfsn.org/

remove 'n-u-l-l' to email me. html mail or attachments will go in the spam
bin unless notified with
HTML:
 or [attachment] in the subject line.
 
On 19 Aug 2004 02:19:30 -0700, not_here.5.species8350@xoxy.net
(species8350) wrote:

I have calulated 300 bps as 12c (by calculator)

But the answer is 0x0000012c, why does the calculator not give this?

I'd expect 0000012c

Sp.
Calculators don't usually show leading zeros.



--
Peter Bennett VE7CEI
email: peterbb4 (at) interchange.ubc.ca
GPS and NMEA info and programs: http://vancouver-webpages.com/peter/index.html
Newsgroup new user info: http://vancouver-webpages.com/nnq
 
"species8350" <not_here.5.species8350@xoxy.net> wrote in message
news:2f3c31c0.0408190119.7f2b66b6@posting.google.com...
I have calulated 300 bps as 12c (by calculator)

But the answer is 0x0000012c, why does the calculator not give this?

I'd expect 0000012c

Sp.
I'm suprised you didn't get 454, or 100101100.

Regards,
Bob Monsen
 
Robert C Monsen wrote:

"species8350" <not_here.5.species8350@xoxy.net> wrote in message
news:2f3c31c0.0408190119.7f2b66b6@posting.google.com...
I have calulated 300 bps as 12c (by calculator)

But the answer is 0x0000012c, why does the calculator not give this?

I'd expect 0000012c

Sp.

I'm suprised you didn't get 454, or 100101100.

That would be 0454 or O454. It looks to me like the OP doesn't
realize that 0x means hex.

Cheers!
Rich
 
John Fields wrote:

On 19 Aug 2004 02:19:30 -0700, not_here.5.species8350@xoxy.net
(species8350) wrote:

I have calulated 300 bps as 12c (by calculator)

But the answer is 0x0000012c, why does the calculator not give this?

I'd expect 0000012c

---
Would you also, in base 10, expect 10*10 to be 000000100?

If I didn't know how to do leading zero suppression, yes.

:)
 
since hex is read right to left just like any other number
base why would you need the padded zero's?
the value is still the same.


species8350 wrote:

I have calulated 300 bps as 12c (by calculator)

But the answer is 0x0000012c, why does the calculator not give this?

I'd expect 0000012c

Sp.
 
On Thu, 19 Aug 2004 13:33:51 -0700, Jamie wrote:

since hex is read right to left just like any other number
base why would you need the padded zero's?
the value is still the same.


species8350 wrote:

I have calulated 300 bps as 12c (by calculator)

But the answer is 0x0000012c, why does the calculator not give this?

I'd expect 0000012c
Maybe he's confused by the C-ism "0x". In any of the Microsoft BASICs,
it would be &H12C, and in some assembly languages it would be 12CH.
 

Welcome to EDABoard.com

Sponsor

Back
Top