问题描述
与Mule 4中的anypoint工作室合作
是否可以将数字四舍五入到100位? 例如:12345.6789-> 12345.68
我已经尝试过了: 以数字{format“#。##”}来回合(12345.6789)
我可能在错误的位置寻找信息。这是我所引用的:https://docs.mulesoft.com/mule-runtime/4.3/dw-core-functions-round
解决方法
我找到了一位同事的答案
12345.6789作为数字作为字符串{格式:“#,## 0.0#”}
结果: 12345.68