Display: add option --fraction-ndigits

to control number of digits to print when formatting ordinary fraction numbers
This commit is contained in:
李通洲 committed 2025-07-16 10:33:20 +08:00
1 parent 6851e7b082
commit 468d1e0903
5 files changed
+61 -2

No files matched your search

+9
View File
@@ -719,6 +719,15 @@
"default": 2
}
},
{
"long": "fraction-ndigits",
"desc": "Set the number of digits to keep after the decimal point when printing ordinary fraction numbers",
"remark": "If negative, the number of digits will be automatically determined based on the value",
"arg": {
"type": "num",
"default": -1
}
},
{
"long": "temp-unit",
"desc": "Set the temperature unit",