diff --git a/PR Tool/GUI/WinPlayerEdit.cpp b/PR Tool/GUI/WinPlayerEdit.cpp index 4cd84e4..34727ca 100644 --- a/PR Tool/GUI/WinPlayerEdit.cpp +++ b/PR Tool/GUI/WinPlayerEdit.cpp @@ -9,6 +9,7 @@ #include "wx/listctrl.h" #include +#include WinPlayerEdit::WinPlayerEdit(wxWindow* parent, wxWindowID winid, wxArrayString choices) :wxPanel(parent, winid), mainAliases(choices) { @@ -172,10 +173,13 @@ bool WinPlayerEdit::getHidden() const { } void WinPlayerEdit::setStats(double rating, double deviation, double volatility, unsigned int wins, unsigned int losses, unsigned int ties) { + std::ostringstream volParse; + volParse.precision(7); + volParse << volatility; ratingVal->SetLabel(wxString(std::to_string(rating).substr(0, std::to_string(rating).find_last_of('.')))); - deviationVal->SetLabel(wxString(std::to_string(deviation).substr(0, std::to_string(deviation).find_last_of('.')))); - volatilityVal->SetLabel(wxString(std::to_string(volatility).substr(0, std::to_string(volatility).find_last_of('.') + 3))); + deviationVal->SetLabel(wxString(std::to_string(deviation).substr(0, std::to_string(deviation).find_last_of('.') + 3))); + volatilityVal->SetLabel(wxString(volParse.str())); setCountVal->SetLabel(wxString( std::to_string(wins) + diff --git a/PR Tool/GUI/WinSetAbt.cpp b/PR Tool/GUI/WinSetAbt.cpp index d414a90..306d3d8 100644 --- a/PR Tool/GUI/WinSetAbt.cpp +++ b/PR Tool/GUI/WinSetAbt.cpp @@ -93,7 +93,7 @@ WinSetAbt::WinSetAbt(wxWindow* parent, wxWindowID winID, double rating, double d // -=========== About ==========- wxStaticBoxSizer* aboutSizer = new wxStaticBoxSizer(wxVERTICAL, this, wxString("About")); wxTextCtrl* aboutText = new wxTextCtrl(this, wxID_ANY, wxString( - "The PR Tool is designed to create Power Rankings using the Glicko-2 algorithm by Mark E. Glickoman and importing results from challonge-brackets.\n\n" + "The PR Tool is designed to create Power Rankings using the Glicko-2 algorithm by Dr. Mark E. Glickman and importing results from challonge-brackets.\n\n" "GUI created using wxWidgets\n" ".json-file management done using JsonCpp\n" "Networking done using libcurl\n"