   Numbers to Digits ?
  Hi,What''s the best (fastest) way to convert a number to digits. For example:5,632 should become 5,6,3,2I''m using bitmap numbers for the display. The best I can come up is this:(max of number in this case is 9,999)float val=5632.0f;float holder=val/1000.0f;int thousands=(int)holder;holder=val-(thousands*1000.0f)/100.0f;int hundreds=(int)holder;... and so on.I''ll bet there is a better way, any ideas ?Thanks. 
  You can use sprintf to convert the number to text, then read the digits from the char array.  (I think it''s sprintf... but I''m not confident.  There is some ?printf that will do it, though) 