convert serial read to int

ASCII is ASCII, there is no decimal ASCII or hexadecimal ASCII.

ASCII is ASCII but an integer in ASCII can be transferred in different formats. "247" is usually the decimal notation but it could be octal also and it may be written as "F7" which is then hexadecimal. Maybe you as native speaker can build a better sounding sentence for this.