Added missing format_real method