RE: Binary conversion
- Posted by Jonas Temple <jktemple at yhti.net> Aug 15, 2002
- 455 views
I really wrote the last post in a moment of frustration. What I didn't quite have a grasp on is the fact that if you do a poke4 of an atom with a value of 90 to memory and then do a peek({mem,4}) at the same location you get {90,0,0,0}. The PC expert would say, "Well, duh, a PC stores binary numbers with significant digit first!" (or last...no first...oh, whatever). What I've been working on is wrappers for DLLs that interface to an IBM iSeries. IBM's method is to store significant digits last so your 90 would look like {0,0,0,90}. I tried doing a value() against my {0,0,0,90} which returned nothing (as it should). So that's why I wondered about binary conversion. Still wondering on how to turn {0,0,0,90} back into 90. I'm gonna keep diggin'. Jonas