fix: display fraction for integer values with mandatory 0 placeholder (#3625)

This commit is contained in:
dualfroz committed 2026-09-02 10:31:44 +02:00
1 parent 49d947e039
commit daff98be25
3 files changed
+59 -4

No files matched your search

@@ -143,4 +143,22 @@ return [
2.65,
'# ???/12',
],
// Integer value, fraction format (issue #3625): a mandatory-digit (0)
// numerator still displays the fraction, while ? and # placeholders
// suppress it and leave only the integer.
[
'1/1',
1,
'0/0',
],
[
'1 0/1',
1,
'0 0/0',
],
[
'1',
1,
'? ??/???',
],
];