我使用 jq 1.6,并尝试将数字四舍五入到小数点后两位。我该怎么做?
我的代码:
echo 20.152 | jq -c 'round'
我的输出:
20
预期输出:
20.15
parsing json jq
jq ×1
json ×1
parsing ×1