Relative Content

Tag Archive for numbers

Algorithm for base-conversion in C?

I put in this code which does what it’s supposed to do, but perhaps there is a better or more general approach? I’m converting a 4-digit base 10 number e.g. “11” to base 16 e.g. “17” (which gets written out on the display as 11 when called with 17 because the function takes bits as argument).

Algorithm for base-conversion in C?

I put in this code which does what it’s supposed to do, but perhaps there is a better or more general approach? I’m converting a 4-digit base 10 number e.g. “11” to base 16 e.g. “17” (which gets written out on the display as 11 when called with 17 because the function takes bits as argument).

Algorithm for base-conversion in C?

I put in this code which does what it’s supposed to do, but perhaps there is a better or more general approach? I’m converting a 4-digit base 10 number e.g. “11” to base 16 e.g. “17” (which gets written out on the display as 11 when called with 17 because the function takes bits as argument).

Algorithm for base-conversion in C?

I put in this code which does what it’s supposed to do, but perhaps there is a better or more general approach? I’m converting a 4-digit base 10 number e.g. “11” to base 16 e.g. “17” (which gets written out on the display as 11 when called with 17 because the function takes bits as argument).

Algorithm for base-conversion in C?

I put in this code which does what it’s supposed to do, but perhaps there is a better or more general approach? I’m converting a 4-digit base 10 number e.g. “11” to base 16 e.g. “17” (which gets written out on the display as 11 when called with 17 because the function takes bits as argument).

Algorithm for base-conversion in C?

I put in this code which does what it’s supposed to do, but perhaps there is a better or more general approach? I’m converting a 4-digit base 10 number e.g. “11” to base 16 e.g. “17” (which gets written out on the display as 11 when called with 17 because the function takes bits as argument).