• Stupid FTN/BINKD Question

    From Mike Powell@21:1/175 to Richard Menedetter on Monday, November 14, 2016 17:56:00
    Easy
    314=0x13A

    If I convert it to the hex I am familiar with, I won't come up with that. Is there some nifty conversion site on the internet, or a linux utility, that would come up with that?

    To me, 314 in HEX is F3F1F4, while a SPACE is 40 and a NULL is 00. :)

    Mike
    ---
    * SLMR 2.1a * "My eyeballs nearly popped out!"


    --- GTMail 1.26
    * Origin: CCO BBS * 502/875-8938 * capcity2.synchro.net (21:1/175.0)
  • From Richard Menedetter@21:1/104 to Mike Powell on Thursday, November 17, 2016 13:32:00
    Hi Mike!

    14 Nov 2016 17:56, from Mike Powell -> Richard Menedetter:

    314=0x13A
    If I convert it to the hex I am familiar with,

    There are not different hexes.
    If you get a different result, then you do something incorrectly!

    Is there some nifty conversion site on the internet, or a linux
    utility, that would come up with that?

    h2d(){
    echo "ibase=16; $@"|bc
    }

    d2h(){
    echo "obase=16; $@"|bc
    }

    fido@odroid:~$ d2h 314
    13A

    To me, 314 in HEX is F3F1F4

    See above.
    Dezimal 314 (base 10) is Hex 13A (base 16)

    Also for online converters:
    http://lmgtfy.com/?q=decimal+to+hex

    http://www.binaryhexconverter.com/decimal-to-hex-converter

    Decimal to hex conversion result in base numbers
    (314)10 = (13A)16

    CU, Ricsi

    --- GoldED+/LNX
    * Origin: Life without LOVE is no life at all! (21:1/104)
  • From Mike Powell@21:1/175 to Richard Menedetter on Thursday, November 17, 2016 19:25:00
    There are not different hexes.
    If you get a different result, then you do something incorrectly!

    No, I am not. I am fairly fluent in HEX when it comes to EBCDIC and ASCII. They are different. You mix them up and you will screw your data, or code,
    up. In either one of them, a three digit number will be expressed as 6
    digits -- F3F1F4 or 333134, respectively. I find it only really comes in
    handy when trying to insert a character that cannot be typed easily, or when trying to figure out what garbage characters an interface has polluted your data with.

    Then there is the hex you speak of that appears to be something that either a mathematician, or someone with two much time on their hands, came up with. Seems to me whoever thought of using it for FTN could have used the actual three-digit numbers, instead of converting it to some other 3-digit numbers, and better used their time figuring out some other aspect of moving mail.

    Luckily, google search will convert them easily enough.

    ---
    * SLMR 2.1a * Her voice rings in his ears like the music of the spheres


    --- GTMail 1.26
    * Origin: CCO BBS * 502/875-8938 * capcity2.synchro.net (21:1/175.0)
  • From Richard Menedetter@21:1/104 to Mike Powell on Friday, November 18, 2016 09:18:00
    Hi Mike!

    17 Nov 2016 19:25, from Mike Powell -> Richard Menedetter:

    There are not different hexes.
    If you get a different result, then you do something incorrectly!
    No, I am not.

    Yes, you do ;))

    https://en.wikipedia.org/wiki/Hexadecimal

    You have asked for a linux command that calculates hex values from their decimal value.
    I provided that.
    You have asked for an online calculator for the same, I provided that.

    I am fairly fluent in HEX

    It seems not to be the case.
    Or you have a misguided believe of what hex (hexadecimal) is.

    "In mathematics and computing, hexadecimal (also base 16, or hex) is a positional numeral system with a radix, or base, of 16."

    when it comes to EBCDIC and ASCII.

    Those are both 8 bit character encodings.
    Maybe your mis believe comes from this.

    You can WRITE the above in any encoding.
    But this has nothing to do per se about hex!

    20 (10) == 14 (16) == 10100 (2)

    200 (10) == c8 (16) == 11001000 (2)

    The 200 above is ONE number.
    It is not 2 ASCII chars!!

    They are different. You mix them up and you will screw your
    data, or code, up.

    ??? what data do I screw up???

    The question was what is 314 in hex, the answer is 13a.
    You claim that "your hex" gives a different result.
    This either means you have no clue what hex is, or your calculation is wrong.
    I am not quit sure which of the above 2 options is the case.

    In either one of them, a three digit number will
    be expressed as 6 digits -- F3F1F4 or 333134, respectively.

    The number of digits depens on the size of the number.
    Eg for dec if it is larger than 99 it will be 3 digits.
    The same for hex if the number is larger then 0xFF (dec 255) you will have 3 digits.
    If the hex number is bigger than 0xFFF (dec 4095) you need 3 hex digits to write it down.

    Quit simple!

    Then there is the hex you speak of that appears to be something that either a mathematician, or someone with two much time on their hands,

    ?????
    Hex is hex is hex.

    You seem to speak about some form of character encoding, that you then translate to hex on a 8 bit (!!) basis.

    came up with. Seems to me whoever thought of using it for FTN could
    have used the actual three-digit numbers, instead of converting it to
    some other 3-digit numbers, and better used their time figuring out
    some other aspect of moving mail.

    Using hex is extremely convenient in computer science!
    That is why it is used.

    CU, Ricsi

    --- GoldED+/LNX
    * Origin: Suicide is the most sincere form of self criticism (21:1/104)
  • From Richard Menedetter@21:1/104 to All on Sunday, November 20, 2016 14:43:00
    Hi All!

    14 Nov 2016 17:56, from Mike Powell -> Richard Menedetter:

    314=0x13A
    To me, 314 in HEX is F3F1F4

    I find it a bit strange that in this whole echo only one person comes up with the correct answer to:
    "What is decimal 314 in hexadecimal".

    Mike 0xf3f1f4 is decimal 15987188 that is "slightly" larger than 314.

    It is also quit logical.
    Hex has a larger base, meaning that the same number can be expressed with less digits.

    0xff (2 hex digits) takes 3 dec digits (256 in dec.)

    CU, Ricsi

    --- GoldED+/LNX
    * Origin: And they said it couldn't be done (21:1/104)
  • From Avon@21:1/101 to Richard Menedetter on Monday, November 21, 2016 17:25:00
    On 11/20/16, Richard Menedetter pondered and said...

    I find it a bit strange that in this whole echo only one person comes up with the correct answer to:
    "What is decimal 314 in hexadecimal".

    I'd qualify that with 'of the people who took the time to reply...' :)

    Personally I'd ask Siri or use some Google Fu if needed. Hexadecimal, (base
    16 right?) was never one I fully wrapped my head around. Although I do recall hours of programming an Intel 8088 mother board with HEX codes to get it to flash HELLO in it's LED's attached to the MOBO. That was circa 1981 I think :)

    Best, Paul

    --- Mystic BBS v1.12 A31 (Windows)
    * Origin: Agency BBS | telnet://agency.bbs.geek.nz (21:1/101)