在拼接字符串用round函数为什么无效

ewValue = 126708.8285
uatField = regexReplace("M1_人工","人工", "uat")
newCondition = " and (" + uatField + " = " + round(newValue, 4) +" )"

麻烦问下,这样写 round,为什么没有效果 ?

attachments-2021-08-UzLFOIR76120d2a33c9f7.png

请先 登录 后评论

1 个回答

Boye

请用format函数:

newCondition = " and (" + uatField + " = " + format(newValue,"0.0000") +" )"
请先 登录 后评论