× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Retrieve IP Address using Telnet exit point
  • From: leif@xxxxxxx
  • Date: Sat, 17 Jul 1999 08:28:16 -0500

1st hex digit:
if hex1 = "1" then digit1 = 1 else
if hex1= "2" then digit1 = 2 else
if hex1 = "3" then digit1 = 3 else
if hex1 = "4" then digit1 = 4 else
if hex1 = "5" then digit1 = 5 else
if hex1 = "6" then digit1 = 6 else
if hex1 = "7" then digit1 = 7 else
if hex1 = "8" then digit1 = 8 else
if hex1 = "9" then digit1 = 9 else
if hex1 = "A" then digit1 = 10 else
if hex1 = "B" then digit1 = 11 else
if hex1 = "C" then digit1 = 12 else
if hex1 = "D" then digit1 = 13 else
if hex1 = "E" then digit1 = 14 else
if hex1 ="F" then digit1 = 15.

2nd hex digit:
if hex2 = "1" then digit2 = 1 else
if hex2= "2" then digit2 = 2 else
if hex2 = "3" then digit2 = 3 else
if hex2 = "4" then digit2 = 4 else
if hex2 = "5" then digit2 = 5 else
if hex2 = "6" then digit2 = 6 else
if hex2 = "7" then digit2 = 7 else
if hex2 = "8" then digit2 = 8 else
if hex2 = "9" then digit2 = 9 else
if hex2 = "A" then digit2 = 10 else
if hex2 = "B" then digit2 = 11 else
if hex2 = "C" then digit2 = 12 else
if hex2 = "D" then digit2 = 13 else
if hex2 = "E" then digit2 = 14 else
if hex2 ="F" then digit2 = 15.

decimal number = digit1 * 16 + digit2



----- Original Message -----
From: Evan Harris <spanner@ihug.co.nz>
To: <MIDRANGE-L@midrange.com>
Sent: Friday, July 16, 1999 10:01 PM
Subject: Re: Retrieve IP Address using Telnet exit point


> Leif,
>
> thanks for the reply, but, <shuffles feet under the desk> err.... how do I
> convert the hex code to a decimal number ? Or, to put it another way, is
> there a simple way of doing this ?
>
> At 18:09 16/07/99 -0500, you wrote:
> >each field is a two-character hex code.
> >convert that to a decimal number with no leading zeroes (except if
> >the whole number is zero).
>
> +---
> | This is the Midrange System Mailing List!
> | To submit a new message, send your mail to MIDRANGE-L@midrange.com.
> | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
> | To unsubscribe from this list send email to
MIDRANGE-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator:
david@midrange.com
> +---
>

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.