josdejong/mathjs

Documentation of Unit.format() is incomplete

开放

#3,440 创建于 2025年3月28日

 (6 条评论) (2 个反应) (0 位负责人)JavaScript (1,314 个派生)batch import
category:unitsdocumentationgood first issue

仓库指标

星标
 (15,065 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Describe the bug The documentation at https://mathjs.org/docs/datatypes/units.html just says "The function will determine the best fitting prefix for the unit", and the Class page at https://mathjs.org/docs/reference/classes/unit.html. One place or the other should provide detail on how the best prefix is selecting, documenting the bias toward the current unit, and the preference for a larger number of tenths over a large number of hundreds (which not everyone may agree with). The absence of such documentation leads to concerns such as #3430.

贡献者指南