GREL 将数字四舍五入并可被 5 整除

GREL round up number and be divisible by 5

在OpenRefine中我有一个数据集,我想将数字四舍五入到最接近的值并且可以除以5(被5整除)。

例如:

1.35 would be 1.50
1.70 would be 2.00

我看过 into the documentation 但不知道如何实现。

如果你的数字都是整数,你可以这样做:

floor((value+4)/5)*5

如果您也可能得到浮点数,您可以按照以下行修改它:

floor((value+4.999)/5)*5