Search:

Type: Posts; User: copeg

Search: Search took 0.10 seconds.

  1. Replies
    7
    Views
    5,445

    [SOLVED] Re: Why do i need to take 48? char to int.

    This will not fix the original posters problem. Casting a char to an int casts the Ascii table value of said character, for the char '0', this is 48, for char '1', this is 49 (see my post above).
  2. Replies
    7
    Views
    5,445

    [SOLVED] Re: Why do i need to take 48? char to int.

    Characters abide by ascii format, and digits begin at index 48 (see Ascii Table - ASCII character codes and html, octal, hex and decimal chart conversion). If you wish to just grab the integer value,...
Results 1 to 2 of 2