Orbeon XForms round-when-formatting="true"

Orbeon XForms round-when-formatting="true"

我想问一下Orbeon XForms 中是否有round-when-formatting="true" 参数与digits-after-decimal="0" 参数结合使用传统舍入的选项。 (23.6->24)(22.8->23)(23.2->23)

documentation section中我看到它使用了一半到偶数的舍入方法。

round-when-formatting="true" 非常适合仅在视图部分使用舍入,因为我只希望在视图中舍入,绑定中计算的值必须不舍入。

目前没有这样的选项。我同意使用 round-to-even() 可能不是正确的选择。可能是因为 XPath 2 中的此函数允许指定精度,而 round() 函数不允许。但是,这已通过 XPath 3 修复。无论哪种方式,我都输入了 issue #3226.