目前neo4j中的Round函数舍入到最接近的整数,但是能够执行以下操作会很棒:
round(56.1214740,3) to get 56.121
round(67.3453451,2) to get 67.35
round(3.23454325) to get 3
怎么做?
答案 0 :(得分:1)
目前在neo4j中存在此限制。
我是通过以下方式完成的:
round(10.0^2 * 56.1214740)/10.0^2
round(10.0^3 * 67.3453451)/10.0^3