Use class methods in formatters for format_exponential_notation