Format number field value