📜  dataweave 2 数字到字符串 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:13.396000             🧑  作者: Mango

代码示例1
%dw 2.0
output application/json
---
{
    noRounding: 123.456 as String,
    roundDown: 123.456 as String {format: "0.00", roundMode:"DOWN"},
    roundHalfDown: 123.455 as String {format: "0.00", roundMode:"HALF_DOWN"},
    roundCeiling: 123.454 as String {format: "0.00", roundMode:"CEILING"}
}