Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 OpenRefine 中,我有一个数据集,我想将数字四舍五入到最接近的值,并且可以除以 5(可被 5 整除)。
例如:
1.35 would be 1.50 1.70 would be 2.00
我查看了文档,但无法弄清楚如何实现这一点。
如果你的数字都是整数,你可以这样做:
floor((value+4)/5)*5
如果您也有可能获得浮点数,则可以按照以下方式对其进行修改:
floor((value+4.999)/5)*5