Serialization of numeric values.