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.
我意识到这是一个非常具体的问题,但供应商论坛不活跃。我的问题是关于一个名为PDF View Plugin的 JIRA 插件。它允许完成一些 Java,但我在正确格式化字符串时遇到了一些问题。我有一个 9 位数字字符串,我想在我的 PDF 模板中输出,但该字符串被格式化为科学记数法(我不想要)。关于如何在 PDF 模板中进行这种类型的字符串格式化的任何想法?谢谢。
我辩论过只是删除这个问题,但如果其他人觉得这很有用,解决方案是使用这个工具$!number.format('###,###.00', $variable)。如果其他人正在评估该插件,开发人员会非常迅速地做出回应。
$!number.format('###,###.00', $variable)
编辑:如果你只想显示一个整数,这对我有用:$!number.format('#', $variable)
$!number.format('#', $variable)