| ??? 01/05/06 18:55 Read: times |
#106621 - decimal unpacker Responding to: ???'s previous message |
Unpacks a 16bit number into it's decimal base units.
eg var = 12345 // decimal constant xx[0] = 5..... xx[4] = 1 could you have used the modulus method of coverting from one base to another or a table driven method? Something like for (n=5; n=>0; ++n) remainder[n] = var_number % power(base,n) n is the number of powers of the base power function is base to the power of n *** This is not exacty the code but some idea. There are a few base conversion programs floating about. Anyway that's my 2 cents worth JG |
| Topic | Author | Date |
| Weekend Puzle | 01/01/70 00:00 | |
| symmetry | 01/01/70 00:00 | |
| no printf | 01/01/70 00:00 | |
| Dont' know but... | 01/01/70 00:00 | |
| Don't be fast on the trigger please | 01/01/70 00:00 | |
| Ah but.. | 01/01/70 00:00 | |
| var | 01/01/70 00:00 | |
| can't answer | 01/01/70 00:00 | |
| oddometer | 01/01/70 00:00 | |
| Well Done !! | 01/01/70 00:00 | |
| simple but slow | 01/01/70 00:00 | |
| Still simple, but faster | 01/01/70 00:00 | |
| No fun at all. | 01/01/70 00:00 | |
| 32-bit / 10-digit conversion | 01/01/70 00:00 | |
| timing | 01/01/70 00:00 | |
| Big Display | 01/01/70 00:00 | |
| if that is not good enough | 01/01/70 00:00 | |
| Even my old eyes could see that! n/t | 01/01/70 00:00 | |
ideas | 01/01/70 00:00 | |
| Optimisation and comment | 01/01/70 00:00 | |
| Re: comment | 01/01/70 00:00 | |
| puzzle | 01/01/70 00:00 | |
| Puzzle | 01/01/70 00:00 | |
| ok ok | 01/01/70 00:00 | |
| decimal unpacker | 01/01/70 00:00 | |
| a quick look reveal that it seems to be | 01/01/70 00:00 |



