diff --git a/eeschema/sim/sim_plot_frame.cpp b/eeschema/sim/sim_plot_frame.cpp index 61448f34dc..207d08d9f7 100644 --- a/eeschema/sim/sim_plot_frame.cpp +++ b/eeschema/sim/sim_plot_frame.cpp @@ -1111,7 +1111,7 @@ void SIM_PLOT_FRAME::menuSaveCsv( wxCommandEvent& event ) out.Write( wxString::Format( "Time%c", SEPARATOR ) ); for( double v : trace->GetDataX() ) - out.Write( wxString::Format( "%f%c", v, SEPARATOR ) ); + out.Write( wxString::Format( "%g%c", v, SEPARATOR ) ); out.Write( "\r\n" ); timeWritten = true; @@ -1120,7 +1120,7 @@ void SIM_PLOT_FRAME::menuSaveCsv( wxCommandEvent& event ) out.Write( wxString::Format( "%s%c", t.first, SEPARATOR ) ); for( double v : trace->GetDataY() ) - out.Write( wxString::Format( "%f%c", v, SEPARATOR ) ); + out.Write( wxString::Format( "%g%c", v, SEPARATOR ) ); out.Write( "\r\n" ); }