Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道如何用一些十进制数字(点后)做一个数字,例如:
{ t: 'n', v: 1234567.87654, z: '###,###,##0.00' }
这将返回结果1,234,567.88。但我不想带逗号的小数。因此,在上述情况下,它应该是1,234,568。
不明白,在我的情况下,哪个 'z' 会有所帮助 - z: '###,###,###,##0' 不起作用。
我知道我可以在 JS 中对其进行格式化并将其写为字符串,但我需要将数字作为数字,而不是字符串。
看起来对我来说这个 z 工作:
z: '#,##0_-;-#,##0_-;0;General'