1. A non-transitory computer-readable recording medium having stored therein a compression program that causes a computer to execute a process comprising: extracting a numeric character string from input data, the numeric character string indicating a numerical value and including therein at least one numeral; and converting the numeric character string to a compressed code utilizing a dictionary that associates numeric character strings and compressed codes.