Connect with us

bps to hex

Discussion in 'Electronic Basics' started by species8350, Aug 19, 2004.

Scroll to continue with content
  1. species8350

    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.
     
  2. John Fields

    John Fields Guest

     
  3. John Larkin

    John Larkin Guest

    The correct answer is approximately

    0x0000000000000000000012C.0000000000000000

    John
     
  4. 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.
     
  5. andy

    andy Guest

    In unix, and the C language I think, 0x0... is the standard prefix for a
    hex number. Not quite sure what your question is.
     
  6. Calculators don't usually show leading zeros.
     
  7. I'm suprised you didn't get 454, or 100101100.

    Regards,
    Bob Monsen
     
  8. Rich Grise

    Rich Grise Guest

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

    Cheers!
    Rich
     
  9. Rich Grise

    Rich Grise Guest

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

    :)
     
  10. Jamie

    Jamie Guest

    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.
     
  11. 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.
     
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 (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-