mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:38:12 +00:00
Calculator: Display zero with only one character
This patch prevents zero to be displayed as "0.00". The value is now always printed with only one character.
This commit is contained in:
parent
ec28af0aef
commit
eb8df0ae2a
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@
|
|||
|
||||
KeypadValue::KeypadValue(i64 value, u8 decimal_places)
|
||||
: m_value(value)
|
||||
, m_decimal_places(decimal_places)
|
||||
, m_decimal_places(value == 0 ? 0 : decimal_places)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue