mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +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:
committed by
Andreas Kling
parent
ec28af0aef
commit
eb8df0ae2a
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user