Digits have ASCII kód '0'..'9' = 48..57
You can find the ASCII value of numbers greater than 9 using the following functions: std::to_string or boost::lexical_cast or std::ostringstream depending on the compiler that you are using.
In binary, "db" would be represented as "01100100" when converted from ASCII to binary. Each character is assigned a unique binary code according to the ASCII standard.
By using a binary number called ASCII code
Binary.
First of all ASCII is encoding system that tells how binary data from file could be represented as text. Is was and still is very widely used starting 1960s. Standard ASCII encoding is 7-bits encoding allowing 128 values, while Extended ASCII is 8-bits encoding which allows 256 values, that is 128 more characters in the table. First 128 Extended ASCII table characters is the same as ASCII table, next 128 is additional characters.
The ASCII adjust instructions in the 8086 microprocessor are used to implement CARRY processing when numeric data is represented in an unpacked form in ASCII. With them, you can create arbitrary precision math operations. The three flavors of data are binary, decimal (packed) and ASCII (decimal unpacked), not including floating point.
ASCII (American Standard Code for Information Interchange) is the most common format for text files in computers and on the Internet. In an ASCII file, each alphabetic, numeric, or special character is represented with a 7-bit binary number (a string of seven 0s or 1s). 128 possible characters are defined.
Most computers use ASCII (or some similar) encoding, in which 'A' is represented as 65, or 01000001 binary. Older IBM mainframes use an entirely different encoding.
Binary code represents letters by assigning each letter a unique combination of 0s and 1s according to a specific coding scheme, such as ASCII or Unicode. Each letter can be represented by a sequence of 0s and 1s that the computer interprets as that specific character.
Because certain standards such as ASCII have different values than an Asian character set. for example, if the letter (Asian letter here) is represented by 129h in an Asian character set, then when 129h is tried to be put into ASCII, it fails, because 129h is not a valid character in ASCII, and is then shown as a box.
All real numbers can be represented in the decimal system. Complex numbers can be represented by a pair of numbers in the decimal system.