The assignment of, usually numerical, values to different character states so that they can be subjected to mathematical manipulations.