mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-24 06:55:19 -07:00
include support of Pi
This commit is contained in:
parent
cd321054c5
commit
40f746e5be
1 changed files with 8 additions and 1 deletions
|
@ -161,7 +161,7 @@ void CCalcEngine::ProcessCommandWorker(WPARAM wParam)
|
||||||
m_bNoPrevEqu = true;
|
m_bNoPrevEqu = true;
|
||||||
if (!m_bChangeOp)
|
if (!m_bChangeOp)
|
||||||
{
|
{
|
||||||
m_nPrevOpCode = m_nOpCode = 0;
|
m_nOpCode = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// this is redundant, illegal keys are disabled
|
// this is redundant, illegal keys are disabled
|
||||||
|
@ -753,6 +753,13 @@ void CCalcEngine::ProcessCommandWorker(WPARAM wParam)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IDC_PI:
|
case IDC_PI:
|
||||||
|
|
||||||
|
m_bNoPrevEqu = true;
|
||||||
|
if (!m_bChangeOp)
|
||||||
|
{
|
||||||
|
m_nOpCode = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (!m_fIntegerMode)
|
if (!m_fIntegerMode)
|
||||||
{
|
{
|
||||||
CheckAndAddLastBinOpToHistory(); // pi is like entering the number
|
CheckAndAddLastBinOpToHistory(); // pi is like entering the number
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue