diff --git a/CHANGELOG b/CHANGELOG index 5c63159..9d52a92 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,14 +1,30 @@ -Version 0.9.0 prerelease (2009.10.18): +Version 0.9.0 prerelease (2009.11.01): * fixed: when 'C' button was pressed, the cursor was not put in the edit window * added: Pad window - a multiline edit window * added: Checking for update dialog box + * added: there are some new buttons on the standard tab + - (...) - the whole expression is surrounded by brackets + - 1/(...) + - ; + - % - a new percentage operator + - floor/ceil/min/max/sqrt/root/gamma + * added: some new options on display tab: + - grouping + - input decimal point + - parameters separated by * changed: precision: Medium - 512 mantissa, 64 exponent Big - 1024 mantissa, 128 exponent Changes from TTMath 0.9.0 prerelease relating to TTCalc: * added: operator percentage - e.g. 1000-50%=1000-(1000*0,5)=500 + e.g. 1000-50% = 1000-(1000*0,5) = 500 + * added: function frac(x) - returns a value without the integer part + (only fraction remains) + * changed: algorithms in sqrt(x) and root(x ; n) + they were not too much accurate for some integers + e.g. Root(16;4) returned a value very closed to 2 but not exactly 2 + Version 0.8.7 prerelease (2009.09.16): * added: new language: Swedish diff --git a/help/accuracy.html b/help/accuracy.html index bb07801..c7bb5f5 100644 --- a/help/accuracy.html +++ b/help/accuracy.html @@ -28,7 +28,7 @@ performed on an approximate value and the result is only an approximation too.

For example try to calculate: 0.204 - 0.34*0.80 + 0.068, you would expect that the -result would be: 0 but TTCalc gives you: 3.15544362088404722164691426e-30 which is +result was 0 but TTCalc gives you: 3.15544362088404722164691426e-30 which is a good approximation to the real zero (look at e-30 part which means 10^(-30)).

diff --git a/help/rounding_functions.html b/help/rounding_functions.html index 3cdeb42..77f8486 100644 --- a/help/rounding_functions.html +++ b/help/rounding_functions.html @@ -10,6 +10,7 @@ + @@ -57,6 +58,11 @@ floor(2)=2
floor(-4.1)=-5
floor(-4.8)=-5 +
frac(x)
+
This function returns a value without the integer part - only fraction remains
+frac(45.789)=0.789
+frac(-2.267)=-0.267
+ diff --git a/src/resource.rc b/src/resource.rc index fb9c2ba..649ce37 100644 --- a/src/resource.rc +++ b/src/resource.rc @@ -220,11 +220,11 @@ BEGIN BS_AUTORADIOBUTTON | BS_LEFT | WS_TABSTOP,21,42,256,10 CONTROL "precision 3",IDC_RADIO_PRECISION_3,"Button", BS_AUTORADIOBUTTON | BS_LEFT | WS_TABSTOP,21,73,256,10 - LTEXT "info 1",IDC_LABEL_PRECISION_1_INFO,38,24,239,8,NOT + LTEXT "info 1",IDC_LABEL_PRECISION_1_INFO,34,24,243,8,NOT WS_GROUP - LTEXT "info 2",IDC_LABEL_PRECISION_2_INFO,38,55,239,8,NOT + LTEXT "info 2",IDC_LABEL_PRECISION_2_INFO,34,55,243,8,NOT WS_GROUP - LTEXT "info 3",IDC_LABEL_PRECISION_3_INFO,38,85,239,8,NOT + LTEXT "info 3",IDC_LABEL_PRECISION_3_INFO,34,85,243,8,NOT WS_GROUP END diff --git a/src/tabs.cpp b/src/tabs.cpp index e253050..b1f7cd4 100644 --- a/src/tabs.cpp +++ b/src/tabs.cpp @@ -1200,6 +1200,12 @@ BOOL WmTabCommand_Press_gamma(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa return true; } +BOOL WmTabCommand_Press_sqrt(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) +{ + InsertText("sqrt()", -1); + +return true; +} @@ -1263,6 +1269,8 @@ void CreateTabCommandMessagesTable(Messages & cmessages) cmessages.Associate(IDC_BUTTON_EXP, WmTabCommand_Press_exp); cmessages.Associate(IDC_BUTTON_BRACKETS_ALL, WmTabCommand_Press_bracketsall); cmessages.Associate(IDC_BUTTON_1DIV_BRACKETS_ALL, WmTabCommand_Press_1div_bracketsall); + cmessages.Associate(IDC_BUTTON_SQRT, WmTabCommand_Press_sqrt); + cmessages.Associate(IDC_BUTTON_ADD_VARIABLE, Variables::WmTabCommand_AddVariable); cmessages.Associate(IDC_BUTTON_EDIT_VARIABLE, Variables::WmTabCommand_EditVariable);