21 : ExponentialFormBase(parent)
22{
23 SetSize(GetBestSize());
24
25 wxString expSymbol = wxString::FromUTF8("\xF0\x9D\x91\x92");
26 wxString superscriptCapitalB = wxString::FromUTF8("\xE1\xB4\xAE");
27 wxString superscriptSmallX = wxString::FromUTF8("\xCB\xA3");
28 m_staticTextExp->SetLabel("y = A" + expSymbol + superscriptCapitalB + superscriptSmallX);
29
30 wxFont font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
31 font.SetPointSize(14);
32 m_staticTextExp->SetFont(font);
33
34 m_parent = parent;
35 m_exponential = exponential;
36
37 double a, b;
38 m_exponential->GetValues(a, b);
41
42 SetInitialSize();
43 Layout();
44}
static wxString StringFromDouble(double value, int minDecimal=1, int maxDecimals=13)
Convert a double value to string.