Drop the FromChar in ConvertNotation

This commit is contained in:
Mark Roszko 2025-08-28 18:26:44 -04:00
parent 736d87aa35
commit 7115f9e716

View File

@ -388,15 +388,7 @@ std::string SIM_VALUE::ConvertNotation( const std::string& aString, NOTATION aFr
std::string prefix = SIM_VALUE_PARSER::ExponentToUnitPrefix( exponent, expReduction,
aToNotation );
double significand{};
#if !defined( __clang__ )
// clang still violates the standard
// best effort, ignore errors
std::from_chars( parseResult.significand.data(),
parseResult.significand.data() + parseResult.significand.size(),
significand );
#else
wxString( parseResult.significand ).ToCDouble( &significand );
#endif
exponent -= expReduction;
return fmt::format( "{:g}{}", significand * std::pow( 10, exponent ),