Yes, you can also combine the first two:
$(* $(/ $R_MIN 5) 5)
It would be nice to have a template function
that does the padding, but right now we dont have that. In
that case it could be like this:
$(str-pad --width 2 --right --pad 0 $(* $(/ $R_MIN 5) 5))
Or something like that. A specialized template
function that does exactly this could also br useful:
$(slice $R_MIN 5)
Although the naming can be tricky (I don't think
slice conveys the meaning well enough).
Creating a simple template function is not too
difficult, just look at the basicfuncs module.
One with arguments is more difficult though.
Bazsi