In https://github.com/google/double-conversion/pull/158#issuecomment-817269680 @N-Dekker suggests that we should add a templated `ToShortest` method that works differently depending on the template argument.