Format numbers properly