Round CategoricalArrays.cut labels

How can I round the labels to two digits without changing anything else?

using CategoricalArrays
cut(rand(5), 2, labels=((from, to, i;kw...)->"$(round(from, digits=2))-$(round(to, digits=2))"))

ERROR: MethodError: no method matching round(::String; digits=2)

This works here with CategoricalArrays 0.10. You’re probably using an older version (maybe because you have installed a package which doesn’t support the new one yet). Try ]add CategoricalArrays@0.10 to see which packages are blocking the update.