home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   sci.space.tech      Technical and general issues related to      3,113 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,636 of 3,113   
   Ian Stirling to Andrew Rich   
   Re: ASCII to BINARY help needed (Satelli   
   26 Feb 04 15:04:53   
   
   From: root@mauve.demon.co.uk   
      
   Andrew Rich  wrote:   
   > Howdy,   
   >   
   > I have a satellite tracking program that outputs from AZ,1-359,EL,1-90 in   
   > ASCII.   
   >   
   > I am just wondering how I can convert this to something meaningfull in the   
   > PIC.   
   >   
   > example How would I convert '2' '8' '0' ASCII to a binary equivalent ?   
   >   
   > See I want to compare this to the counter in the PIC and then do something.   
   >   
   > Work out if the incoming value is higher or lower than the current counter   
   > value.   
   >   
   > Ideas ?   
      
   Look at an ascii table (google should help)   
   This gives each charachters code, (2 is 51 for example).   
   Now just convert from decimal to binary.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca