JavaScript数字格式化(千k/万w)及小数位控制 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited JavaScript数字格式化(千k/万w)及小数位控制 (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
Aggregate score unchanged between these scans.
The primary manifest — the file an agent reads to learn what this artifact does.
将数字格式化为千(k)或万(w)单位的字符串,支持通过参数指定小数位数或保留原始小数位数。
编写一个JavaScript函数 formatNumberWithUnits,用于将数字格式化为带有单位(k或w)的字符串。
fixedDecimalPlace。fixedDecimalPlace 是一个数字,则使用 toFixed(fixedDecimalPlace) 来固定小数位数。fixedDecimalPlace 为 null 或未提供,则保留原始数字的小数位数(如果是整数则不显示小数,如果是小数则保留原有精度)。~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.