四舍五入到最近的100个地方Mule 4 Anypoint Studio 7.5

问题描述

与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

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...