Sometimes it is a good idea to ask. I did not really notice the meaning of str. I tried: print val(str(pi,5)) * 2 and this works perfectly.
In examples\dataprocessing there is a demo format2.o2bas which does a lot of formatting, but this is more than I need in the moment.