Display: add option --fraction-ndigits

to control number of digits to print when formatting ordinary fraction numbers
This commit is contained in:
李通洲
2025-07-16 10:30:45 +08:00
parent 6851e7b082
commit 468d1e0903
5 changed files with 61 additions and 2 deletions
+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",