DiablodeMorte
05-25-2008, 11:46 AM
I used to have a long post here about how I couldn't figure out how to make something work. I've gotten it all solved except for 1 thing.
I have 3 bytes. The first is the 100's digit, the second is the 10's digit and the third is the 1's digit. How do I convert them to 1 long? It seems that my SPIN abilities are very very rusty
Regards
PS. Here's what i mean:
SerialByte[0] = 100's digit
SerialByte = 10's digit
SerialByte = 1's digit
final = long variable i want to equal the above
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Current Projects:
Robot Control Via Skype API - Dev Stage(50% Complete) - Total(25%)
Robot Localization Via Xbee's - Research Stage
IR Tracking with Propeller - Research Stage
Post Edited (DiablodeMorte) : 5/25/2008 5:57:45 AM GMT
I have 3 bytes. The first is the 100's digit, the second is the 10's digit and the third is the 1's digit. How do I convert them to 1 long? It seems that my SPIN abilities are very very rusty
Regards
PS. Here's what i mean:
SerialByte[0] = 100's digit
SerialByte = 10's digit
SerialByte = 1's digit
final = long variable i want to equal the above
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Current Projects:
Robot Control Via Skype API - Dev Stage(50% Complete) - Total(25%)
Robot Localization Via Xbee's - Research Stage
IR Tracking with Propeller - Research Stage
Post Edited (DiablodeMorte) : 5/25/2008 5:57:45 AM GMT