mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +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
Notes:
sideshowbarker
2024-07-17 21:48:22 +09:00
Author: https://github.com/LucasChollet 🔰
Commit: eb8df0ae2a
Pull-request: https://github.com/SerenityOS/serenity/pull/11545
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