Revert "Remove trailing zeros from all values"

This reverts commit abd0388794.
This commit is contained in:
Seth Hillbrand 2024-04-23 11:08:14 -07:00
parent b1180d9377
commit fc93c63a19
1 changed files with 0 additions and 7 deletions

View File

@ -464,13 +464,6 @@ wxString EDA_UNIT_UTILS::UI::MessageTextFromValue( const EDA_IU_SCALE& aIuScale,
}
text.Printf( format, value );
removeTrailingZeros( text );
if( value != 0.0 && ( text == wxS( "0" ) || text == wxS( "-0" ) ) )
{
text.Printf( wxS( "%.10f" ), value );
removeTrailingZeros( text );
}
if( aAddUnitsText )
text += EDA_UNIT_UTILS::GetText( aUnits, aType );