mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-13 01:56:50 -07:00
Update Calc Engine for new functions needed for keyboard refresh (#662)
* Update Calc Engine to Support New Functionality * Address PR comments * Address PR comments
This commit is contained in:
parent
d9bf57ff99
commit
9cb0932eaa
22 changed files with 849 additions and 176 deletions
|
@ -261,6 +261,11 @@ void CalcInput::SetDecimalSymbol(wchar_t decSymbol)
|
|||
}
|
||||
}
|
||||
|
||||
bool CalcInput::IsEmpty()
|
||||
{
|
||||
return m_base.IsEmpty() && !m_hasExponent && m_exponent.IsEmpty() && !m_hasDecimal;
|
||||
}
|
||||
|
||||
wstring CalcInput::ToString(uint32_t radix)
|
||||
{
|
||||
// In theory both the base and exponent could be C_NUM_MAX_DIGITS long.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue